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 editor not loading in older browsers
ammarahm-edd3aa8c5efbf7
diff --git a/apps/mobile/android/app/src/main/assets/texteditor.html b/apps/mobile/android/app/src/main/assets/texteditor.htmlindex 84fc8e496..848a6b133 100644--- a/apps/mobile/android/app/src/main/assets/texteditor.html+++ b/apps/mobile/android/app/src/main/assets/texteditor.html@@ -382,7 +382,10 @@isEmptyLine(range) {const [line] = this.quill.getLine(range.index);- const isEmpty = line?.children?.head?.text?.trim() === "";+ var isEmpty;+ if (line && line.children && line.children.head && line.children.head.text) {+ isEmpty = line.children.head.text.trim() === "";+ }return isEmpty;}}@@ -445,7 +448,7 @@function loadAction(premium) {isTablet = true;setFonts();-+var Block = Quill.import('blots/block');Block.tagName = 'DIV';Quill.register(Block, true);@@ -534,6 +537,8 @@}}++ loadAction(true);</script>diff --git a/apps/mobile/html/Web.bundle/site/index.html b/apps/mobile/html/Web.bundle/site/index.htmlindex 7516c1372..245ef55f5 100644--- a/apps/mobile/html/Web.bundle/site/index.html+++ b/apps/mobile/html/Web.bundle/site/index.html@@ -412,10 +412,13 @@}isEmptyLine(range) {- const [line] = this.quill.getLine(range.index);- const isEmpty = line?.children?.head?.text?.trim() === "";- return isEmpty;- }+ const [line] = this.quill.getLine(range.index);+ var isEmpty;+ if (line && line.children && line.children.head && line.children.head.text) {+ isEmpty = line.children.head.text.trim() === "";+ }+ return isEmpty;+ }}class BetterList extends List {