Skip to content

Commit 710a284

Browse files
committedJun 7, 2023
bugfix: tinode#69 should not throw db not intialised error if indexeddb not available
- by defaulting value of disabled variable to true, only when db is available should set disabled:false
1 parent ef312f9 commit 710a284

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/db.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default class DB {
2121
// Instance of IndexDB.
2222
db = null;
2323
// Indicator that the cache is disabled.
24-
disabled = false;
24+
disabled = true;
2525

2626
constructor(onError, logger) {
2727
this.#onError = onError || this.#onError;

0 commit comments

Comments
 (0)