A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
do not queue functions
ammarahm-ed8661ac41c330
diff --git a/apps/mobile/src/views/Editor/Functions.js b/apps/mobile/src/views/Editor/Functions.jsindex 7234919cb..7666024b3 100644--- a/apps/mobile/src/views/Editor/Functions.js+++ b/apps/mobile/src/views/Editor/Functions.js@@ -311,8 +311,7 @@ function onNoteChange() {}export async function clearEditor() {- if (!webviewInit) return;- tiny.call(EditorWebView, tiny.reset);+ tiny.call(EditorWebView, tiny.reset,true);clearTimer();if (noteEdited && id) {await saveNote(false);@@ -327,8 +326,8 @@ export async function clearEditor() {redo: 0,});saveCounter = 0;- tiny.call(EditorWebView, tiny.updateDateEdited(''));- tiny.call(EditorWebView, tiny.updateSavingState(''));+ tiny.call(EditorWebView, tiny.updateDateEdited(''),true);+ tiny.call(EditorWebView, tiny.updateSavingState(''),true);clearNote();}diff --git a/apps/mobile/src/views/Editor/tiny/tiny.js b/apps/mobile/src/views/Editor/tiny/tiny.jsindex 507cbebbf..764c0331b 100644--- a/apps/mobile/src/views/Editor/tiny/tiny.js+++ b/apps/mobile/src/views/Editor/tiny/tiny.js@@ -123,10 +123,11 @@ const focusEditor = `tinymce.activeEditor.focus();`;-function call(webview, func) {+function call(webview, func, noqueue) {if (getWebviewInit()) {webview.current?.injectJavaScript(func);} else {+ if (noqueue) return;setTimeout(() => {console.log('run after delay');webview.current?.injectJavaScript(func);