mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +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,
|
key: SerializedKey,
|
||||||
hash: string
|
hash: string
|
||||||
) {
|
) {
|
||||||
if (!IndexedDBKVStore.isIndexedDBSupported())
|
if (!isFeatureSupported("indexedDB"))
|
||||||
throw new Error("This browser does not support IndexedDB.");
|
throw new Error("This browser does not support IndexedDB.");
|
||||||
|
|
||||||
if (await streamablefs.exists(hash)) await streamablefs.deleteFile(hash);
|
if (await streamablefs.exists(hash)) await streamablefs.deleteFile(hash);
|
||||||
|
|||||||
Reference in New Issue
Block a user