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 word counter
ammarahm-edafa481a0982b
diff --git a/apps/mobile/android/app/src/main/assets/listeners.js b/apps/mobile/android/app/src/main/assets/listeners.jsindex 47045781e..4dd8f8f69 100644--- a/apps/mobile/android/app/src/main/assets/listeners.js+++ b/apps/mobile/android/app/src/main/assets/listeners.js@@ -64,6 +64,9 @@ function onTitleChange(ele) {type: 'title',value: document.getElementById(titleInput).value,};+ info = document.querySelector(infoBar);+ info.querySelector('#infowords').innerText =+ editor.getText().split(' ').length + ' words';autosize();if (titleMessage && typeof titleMessage.value === 'string') {window.ReactNativeWebView.postMessage(JSON.stringify(titleMessage));@@ -281,6 +284,9 @@ function attachMessageListener() {break;case 'title':document.getElementById(titleInput).value = JSON.parse(data.data).value;+ info = document.querySelector(infoBar);+ info.querySelector('#infowords').innerText =+ editor.getText().split(' ').length + ' words';autosize();break;case 'theme':diff --git a/apps/mobile/html/Web.bundle/site/listeners.js b/apps/mobile/html/Web.bundle/site/listeners.jsindex 352971731..d0fcfadc3 100644--- a/apps/mobile/html/Web.bundle/site/listeners.js+++ b/apps/mobile/html/Web.bundle/site/listeners.js@@ -64,6 +64,9 @@ function onTitleChange(ele) {type: 'title',value: document.getElementById(titleInput).value,};+ info = document.querySelector(infoBar);+ info.querySelector('#infowords').innerText =+ editor.getText().split(' ').length + ' words';autosize();if (titleMessage && typeof titleMessage.value === 'string') {window.ReactNativeWebView.postMessage(JSON.stringify(titleMessage));@@ -284,6 +287,8 @@ function attachMessageListener() {break;case 'title':document.getElementById(titleInput).value = JSON.parse(data.data).value;+ info.querySelector('#infowords').innerText =+ editor.getText().split(' ').length + ' words';autosize();break;case 'theme':