aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-05-01 04:09:52 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-05-01 04:09:52 +0200
commit41ed276f3aad355a8a2504759edf5b737922272e (patch)
treef334d1d1dc3eeb01c34aa1824323ff4df6b19a0f /src
parent4c03a1200eb947a0ed13f78b46fd670601b8cb80 (diff)
update /keys every 15 minutes
Diffstat (limited to 'src')
-rw-r--r--src/wallet.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wallet.ts b/src/wallet.ts
index 63cd597ea..71dc1754b 100644
--- a/src/wallet.ts
+++ b/src/wallet.ts
@@ -293,6 +293,10 @@ function setTimeout(f: any, t: number) {
return chrome.extension.getBackgroundPage().setTimeout(f, t);
}
+function setInterval(f: any, t: number) {
+ return chrome.extension.getBackgroundPage().setInterval(f, t);
+}
+
function isWithdrawableDenom(d: DenominationRecord) {
const now_sec = (new Date).getTime() / 1000;
@@ -521,6 +525,8 @@ export class Wallet {
this.fillDefaults();
this.resumePendingFromDb();
+
+ setInterval(() => this.updateExchanges(), 1000 * 60 * 15);
}
private async fillDefaults() {