From 34acf8488eda7912fc2afc1753cf0c2393820d18 Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Wed, 14 Feb 2024 14:02:00 +0500 Subject: [PATCH] web: fix `cr.isIndexedDBSupported` is not a function --- apps/web/src/interfaces/fs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/interfaces/fs.ts b/apps/web/src/interfaces/fs.ts index 21654922d..b7fa0a1bc 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);