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
fix errors in editor
ammarahm-ed0402b18dcc9e
diff --git a/apps/mobile/html/Web.bundle/site/listeners.js b/apps/mobile/html/Web.bundle/site/listeners.jsindex 9e03909c1..28cfbebcb 100755--- a/apps/mobile/html/Web.bundle/site/listeners.js+++ b/apps/mobile/html/Web.bundle/site/listeners.js@@ -139,6 +139,7 @@ function attachMessageListener() {document.activeElement.blur();window.blur();}, 300);+ info = document.querySelector(infoBar);info.querySelector('#infowords').innerText =editor.countWords() + ' words';break;diff --git a/apps/mobile/src/views/Editor/Functions.js b/apps/mobile/src/views/Editor/Functions.jsindex 41674291b..5b95547ce 100644--- a/apps/mobile/src/views/Editor/Functions.js+++ b/apps/mobile/src/views/Editor/Functions.js@@ -89,6 +89,7 @@ async function waitForEvent(event, caller) {resolved = true;clearTimeout(resolved);waitForContent = false;+ console.log('message returned');resolve(true);};eSubscribeEvent(event, event_callback);@@ -145,7 +146,7 @@ const request_content = `(function() {window.ReactNativeWebView.postMessage(JSON.stringify({type: 'tiny',- value: editor.getHTML();+ value: editor.getHTML()}));}@@ -326,10 +327,6 @@ export const _onMessage = async evt => {console.log('history', message.value);eSendEvent('historyEvent', message.value);break;- case 'noteedited':- console.log('note changed');- noteEdited = true;- break;case 'tiny':if (message.value !== content.data) {noteEdited = true;