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
handle errors in editor
ammarahm-ed8c433cb40f97
diff --git a/apps/mobile/html/Web.bundle/site/init.js b/apps/mobile/html/Web.bundle/site/init.jsindex a86bb50ba..dfc801f64 100755--- a/apps/mobile/html/Web.bundle/site/init.js+++ b/apps/mobile/html/Web.bundle/site/init.js@@ -227,7 +227,6 @@ function init_callback(_editor) {editor.on('keyup', e => {console.log('keyup: ', e);if (e.key !== 'Backspace') return;- if (!editor.getHTML) return;onChange();});}diff --git a/apps/mobile/src/views/Editor/Functions.js b/apps/mobile/src/views/Editor/Functions.jsindex 3d4c61597..6751113df 100644--- a/apps/mobile/src/views/Editor/Functions.js+++ b/apps/mobile/src/views/Editor/Functions.js@@ -461,11 +461,10 @@ export const _onMessage = async evt => {} catch (e) {return;}-switch (message.type) {case 'tinyerror':ToastEvent.show({- heading: 'An error occured',+ heading: 'Error saving note',message: message.value,type: 'error'});@@ -900,6 +899,12 @@ export async function saveNote(preventUpdate) {}});}+ console.log(e);+ ToastEvent.show({+ heading:"Error saving note",+ message:e.message,+ type:"error"+ });}isSaving = false;}