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