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
clean up
ammarahm-ed0db2bb8dfcf1
diff --git a/apps/mobile/src/utils/Storage.js b/apps/mobile/src/utils/Storage.jsindex 98d98bfe5..443ada914 100644--- a/apps/mobile/src/utils/Storage.js+++ b/apps/mobile/src/utils/Storage.js@@ -180,36 +180,10 @@ async function checkAndCreateDir(path) {}async function hash(password, email) {- console.log(password,email,'calling');let result = await Sodium.hashPassword(password, email);- console.log(result,'result');return result}-/*-function compress(data) {- return urlEncode(base64.fromByteArray(pako.gzip(data)));-}--function decompress(data) {- console.log(data);- return pako.ungzip(base64.toByteArray(urlDecode(data)),{- to:"string"- });-}---var urlEncode = function(encoded) {- return encoded.replace('+', '-').replace('/', '_').replace(/=+$/, '');-};--var urlDecode = function(encoded) {- encoded = encoded.replace('-', '+').replace('_', '/');- while (encoded.length % 4)- encoded += '=';- return encoded;-};- */export default {read,write,diff --git a/apps/mobile/src/views/Editor/Functions.js b/apps/mobile/src/views/Editor/Functions.jsindex 0b2d08cab..935bea93d 100644--- a/apps/mobile/src/views/Editor/Functions.js+++ b/apps/mobile/src/views/Editor/Functions.js@@ -90,6 +90,7 @@ export async function clearTimer(clear) {content.data?.trim().length > 0) ||(title && title?.trim().length > 0 && id)) {+ console.log('saving note now');await saveNote(true);}}@@ -430,8 +431,8 @@ function onNoteChange() {}, 500);}-export async function clearEditor() {- await clearTimer(true);+export async function clearEditor(clear=true) {+ clear && await clearTimer(true);try {tiny.call(EditorWebView, tiny.reset, true);clearNote();