web: fix cr.isIndexedDBSupported is not a function

This commit is contained in:
Abdullah Atta
2024-02-14 14:02:00 +05:00
parent e0c1d6344d
commit 7ce9121f8e

View File

@@ -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);