Skip to content

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

desktop: clonableCryptoKey is always true on desktop

Abdullah Atta67981be5165f
diff --git a/apps/web/src/utils/feature-check.ts b/apps/web/src/utils/feature-check.ts
index b6dce8714..c5f69f6cd 100644
--- a/apps/web/src/utils/feature-check.ts
+++ b/apps/web/src/utils/feature-check.ts
@@ -69,6 +69,11 @@ async function isIndexedDBSupported() {
}
async function isCryptoKeyClonable() {
+ if (IS_DESKTOP_APP) {
+ FEATURE_CHECKS.clonableCryptoKey = true;
+ return;
+ }
+
const key = await window.crypto.subtle.generateKey(
{ name: "AES-KW", length: 256 },
false,