mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 06:59:31 +01:00
web: fix cr.isIndexedDBSupported is not a function
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user