mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
desktop: disable native crypto
This commit is contained in:
@@ -21,7 +21,8 @@ import { INNCrypto } from "@notesnook/crypto";
|
|||||||
import CryptoWorker from "./nncrypto.worker?worker";
|
import CryptoWorker from "./nncrypto.worker?worker";
|
||||||
import { wrap } from "comlink";
|
import { wrap } from "comlink";
|
||||||
|
|
||||||
export const NNCrypto =
|
export const NNCrypto = wrap<INNCrypto>(new CryptoWorker()) as INNCrypto;
|
||||||
IS_DESKTOP_APP && window.NativeNNCrypto
|
// TODO: disable until we fix the `pull failed` errors for good.
|
||||||
? new window.NativeNNCrypto()
|
// IS_DESKTOP_APP && window.NativeNNCrypto
|
||||||
: (wrap<INNCrypto>(new CryptoWorker()) as INNCrypto);
|
// ? new window.NativeNNCrypto()
|
||||||
|
// : (wrap<INNCrypto>(new CryptoWorker()) as INNCrypto);
|
||||||
|
|||||||
Reference in New Issue
Block a user