desktop: disable native crypto

This commit is contained in:
Abdullah Atta
2024-08-27 13:07:09 +05:00
parent 025e23356a
commit 0f17b01a74

View File

@@ -21,7 +21,8 @@ import { INNCrypto } from "@notesnook/crypto";
import CryptoWorker from "./nncrypto.worker?worker";
import { wrap } from "comlink";
export const NNCrypto =
IS_DESKTOP_APP && window.NativeNNCrypto
? new window.NativeNNCrypto()
: (wrap<INNCrypto>(new CryptoWorker()) as INNCrypto);
export const NNCrypto = wrap<INNCrypto>(new CryptoWorker()) as INNCrypto;
// TODO: disable until we fix the `pull failed` errors for good.
// IS_DESKTOP_APP && window.NativeNNCrypto
// ? new window.NativeNNCrypto()
// : (wrap<INNCrypto>(new CryptoWorker()) as INNCrypto);