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: app doesn't work in firefox private mode
thecodrr60da72a27643
diff --git a/apps/web/src/interfaces/storage.js b/apps/web/src/interfaces/storage.jsindex 86e1166d2..93330becf 100644--- a/apps/web/src/interfaces/storage.js+++ b/apps/web/src/interfaces/storage.js@@ -42,7 +42,7 @@ async function deriveCryptoKey(name, data) {const keyData = await crypto.deriveKey(password, salt, true);- if (localforage.supports(localforage.INDEXEDDB) && window?.crypto?.subtle) {+ if (isIndexedDBSupported() && window?.crypto?.subtle) {const pbkdfKey = await derivePBKDF2Key(password);await write(name, pbkdfKey);const cipheredKey = await aesEncrypt(pbkdfKey, keyData);@@ -53,7 +53,7 @@ async function deriveCryptoKey(name, data) {}async function getCryptoKey(name) {- if (localforage.supports(localforage.INDEXEDDB) && window?.crypto?.subtle) {+ if (isIndexedDBSupported() && window?.crypto?.subtle) {const pbkdfKey = await read(name);const cipheredKey = await read(`${name}@_k`);if (typeof cipheredKey === "string") return cipheredKey;@@ -64,6 +64,10 @@ async function getCryptoKey(name) {}}+function isIndexedDBSupported() {+ return localforage.driver() === "asyncStorage";+}+const Storage = {read,readMulti,