Skip to content

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

web: fix `cr.isIndexedDBSupported` is not a function

Abdullah Atta7ce9121f8e27
diff --git a/apps/web/src/interfaces/fs.ts b/apps/web/src/interfaces/fs.ts
index 379f694d8..a1e429763 100644
--- a/apps/web/src/interfaces/fs.ts
+++ b/apps/web/src/interfaces/fs.ts
@@ -71,7 +71,7 @@ export async function writeEncryptedFile(
key: SerializedKey,
hash: string
) {
- if (!IndexedDBKVStore.isIndexedDBSupported())
+ if (!isFeatureSupported("indexedDB"))
throw new Error("This browser does not support IndexedDB.");
if (await streamablefs.exists(hash)) await streamablefs.deleteFile(hash);