From 8c92499d85917693d2f87252419f0eeccd239a2b Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 8 Feb 2021 19:59:19 +0100 Subject: idb: add first web platform tests, fix issues detected by them --- packages/taler-wallet-core/src/util/query.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packages/taler-wallet-core') diff --git a/packages/taler-wallet-core/src/util/query.ts b/packages/taler-wallet-core/src/util/query.ts index d0b8c2ef6..71c809ec7 100644 --- a/packages/taler-wallet-core/src/util/query.ts +++ b/packages/taler-wallet-core/src/util/query.ts @@ -106,7 +106,7 @@ function transactionToPromise(tx: IDBTransaction): Promise { }; tx.onerror = () => { console.error("Transaction failed:", stack); - reject(tx.error); + reject(tx._error); }; }); } @@ -394,8 +394,8 @@ function runWithTransaction>( logger.error(`${stack}`); }; tx.onabort = () => { - if (tx.error) { - logger.error("Transaction aborted with error:", tx.error); + if (tx._error) { + logger.error("Transaction aborted with error:", tx._error); } else { logger.error("Trasaction aborted (no error)"); } -- cgit v1.2.3