Skip to content

Commit

Permalink
Don't emit a closed event if the indexeddb is closed by Element
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Henneke <[email protected]>
  • Loading branch information
dhenneke committed Oct 25, 2023
1 parent f941fd8 commit 683765b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/store/indexeddb-local-backend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ export class LocalIndexedDBStoreBackend implements IIndexedDBBackend {
this.db?.close(); // this does not call onclose
this.disconnected = true;
this.db = undefined;
onClose?.();
};
this.db.onclose = (): void => {
this.disconnected = true;
Expand Down

0 comments on commit 683765b

Please sign in to comment.