summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/util
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-02-08 19:59:19 +0100
committerFlorian Dold <florian@dold.me>2021-02-08 19:59:19 +0100
commit8c92499d85917693d2f87252419f0eeccd239a2b (patch)
tree569d0ee1c25d62caf0ac87131ecfa8166d12c62b /packages/taler-wallet-core/src/util
parent5ff5a686e4f15dea839b18fda9275687557d23a7 (diff)
downloadwallet-core-8c92499d85917693d2f87252419f0eeccd239a2b.tar.gz
wallet-core-8c92499d85917693d2f87252419f0eeccd239a2b.tar.bz2
wallet-core-8c92499d85917693d2f87252419f0eeccd239a2b.zip
idb: add first web platform tests, fix issues detected by them
Diffstat (limited to 'packages/taler-wallet-core/src/util')
-rw-r--r--packages/taler-wallet-core/src/util/query.ts6
1 files changed, 3 insertions, 3 deletions
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<void> {
};
tx.onerror = () => {
console.error("Transaction failed:", stack);
- reject(tx.error);
+ reject(tx._error);
};
});
}
@@ -394,8 +394,8 @@ function runWithTransaction<T, StoreTypes extends Store<string, {}>>(
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)");
}