We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3a3a52 commit 1ba4412Copy full SHA for 1ba4412
src/crypto/store/indexeddb-crypto-store.ts
@@ -204,9 +204,12 @@ export class IndexedDBCryptoStore implements CryptoStore {
204
);
205
206
try {
207
+ if (!(globalThis.localStorage instanceof Storage)) {
208
+ throw new Error("localStorage is not available");
209
+ }
210
return new LocalStorageCryptoStore(globalThis.localStorage);
211
} catch (e) {
- logger.warn(`unable to open localStorage: falling back to in-memory store: ${e}`);
212
+ logger.warn(`Unable to open localStorage: falling back to in-memory store: ${e}`);
213
return new MemoryCryptoStore();
214
}
215
})
0 commit comments