aboutsummaryrefslogtreecommitdiff
path: root/lib/wallet/wxMessaging.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-09-14 15:55:10 +0200
committerFlorian Dold <florian.dold@gmail.com>2016-09-14 15:55:10 +0200
commitebbdadb4b6bd59e57b0eec8e280c7c5c12453167 (patch)
tree8f9fdbd1cf0e2d1b79884dfe15828f3c98f28da6 /lib/wallet/wxMessaging.ts
parentfc6db1824e6974898f177ffb0ffd2eb138a653ce (diff)
downloadwallet-core-ebbdadb4b6bd59e57b0eec8e280c7c5c12453167.tar.xz
sort out libs / fix warnings
Diffstat (limited to 'lib/wallet/wxMessaging.ts')
-rw-r--r--lib/wallet/wxMessaging.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/wallet/wxMessaging.ts b/lib/wallet/wxMessaging.ts
index 401fefd56..9c08b20ca 100644
--- a/lib/wallet/wxMessaging.ts
+++ b/lib/wallet/wxMessaging.ts
@@ -64,7 +64,7 @@ function makeHandlers(db: IDBDatabase,
},
["reset"]: function(detail, sender) {
if (db) {
- let tx = db.transaction(db.objectStoreNames, 'readwrite');
+ let tx = db.transaction(Array.from(db.objectStoreNames), 'readwrite');
for (let i = 0; i < db.objectStoreNames.length; i++) {
tx.objectStore(db.objectStoreNames[i]).clear();
}
@@ -313,7 +313,7 @@ export function wxMain() {
console.error("could not open database");
console.error(e);
})
- .then((db) => {
+ .then((db: IDBDatabase) => {
let http = new BrowserHttpLib();
let badge = new ChromeBadge();
let notifier = new ChromeNotifier();