Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: crypto causing perpetual loading

thecodrr88d105a7b599
diff --git a/apps/web/src/interfaces/crypto.js b/apps/web/src/interfaces/crypto.js
index 8841acec6..c9db90b1b 100644
--- a/apps/web/src/interfaces/crypto.js
+++ b/apps/web/src/interfaces/crypto.js
@@ -51,7 +51,8 @@ class CryptoWorker {
this.promiseQueue = [];
}
async _initialize() {
- if (this.isReady || this.initializing)
+ if (this.isReady) return;
+ if (this.initializing)
return await new Promise((resolve, reject) => {
this.promiseQueue.push({ resolve, reject });
});
diff --git a/apps/web/yarn.lock b/apps/web/yarn.lock
index 22fe1a5ad..ca332c270 100644
--- a/apps/web/yarn.lock
+++ b/apps/web/yarn.lock
@@ -8962,21 +8962,9 @@ normalize-url@^3.0.0, normalize-url@^3.0.1:
resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-3.3.0.tgz#b2e1c4dc4f7c6d57743df733a4f5978d18650559"
integrity sha512-U+JJi7duF1o+u2pynbp2zXDW2/PADgC30f0GsHZtRh+HOcXHnw137TrNlyxxRvWW5fjKd3bcLHPxofWuCjaeZg==
-notes-core@../notes-core/:
- version "4.0.0"
- dependencies:
- fast-sort "^2.0.1"
- fuzzysearch "^1.0.3"
- jshashes "^1.0.8"
- no-internet "^1.5.2"
- qclone "^1.0.4"
- quill-delta-to-html "^0.12.0"
- quill-delta-to-markdown "https://github.com/streetwriters/quill-delta-to-markdown"
- transfun "^1.0.2"
-
"notes-core@git+ssh://[email protected]:streetwriters/notesnook-core.git":
- version "4.0.0"
- resolved "git+ssh://[email protected]:streetwriters/notesnook-core.git#1692099ea401ec66ec6ff7d445c730915eb8b800"
+ version "4.1.0"
+ resolved "git+ssh://[email protected]:streetwriters/notesnook-core.git#1b7389520ce50446db71f9e605f5ecc062a35a49"
dependencies:
fast-sort "^2.0.1"
fuzzysearch "^1.0.3"