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 c02208f commit 27757d9Copy full SHA for 27757d9
src/app/storage/idb-keyval.ts
@@ -45,7 +45,8 @@ export class Store {
45
new Promise<void>((resolve, reject) => {
46
const transaction = db.transaction(this.storeName, type);
47
transaction.oncomplete = () => resolve();
48
- transaction.onabort = transaction.onerror = () => reject(transaction.error);
+ transaction.onerror = (e) => reject((e.target as IDBTransaction).error);
49
+ transaction.onabort = () => reject(transaction.error);
50
callback(transaction.objectStore(this.storeName));
51
})
52
);
0 commit comments