Skip to content

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

web: disable native crypto due to stream encryption issues

Abdullah Attacdf3ea9dab0c
diff --git a/apps/web/src/interfaces/nncrypto.stub.ts b/apps/web/src/interfaces/nncrypto.stub.ts
index 121442745..7e8c834a2 100644
--- a/apps/web/src/interfaces/nncrypto.stub.ts
+++ b/apps/web/src/interfaces/nncrypto.stub.ts
@@ -22,9 +22,10 @@ import CryptoWorker from "@notesnook/crypto-worker/dist/src/worker.js?worker";
async function loadNNCrypto() {
const hasWorker = "Worker" in window || "Worker" in global;
- if (IS_DESKTOP_APP && window.NativeNNCrypto) {
- return window.NativeNNCrypto;
- } else if (hasWorker) {
+ // if (IS_DESKTOP_APP && window.NativeNNCrypto) {
+ // return window.NativeNNCrypto;
+ // } else
+ if (hasWorker) {
const { NNCryptoWorker } = await import("@notesnook/crypto-worker");
return NNCryptoWorker;
} else {