diff options
author | Florian Dold <florian@dold.me> | 2021-08-19 15:12:33 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-08-19 15:12:33 +0200 |
commit | c0e6b6d0f66508ebc8d33502d1281cb48a1c9cc6 (patch) | |
tree | e80d81ec1c13a24c73a00eb6f388d6db75b32c0c /packages/taler-wallet-webextension | |
parent | defc393d6e320f6cc76df059a94936a7b88571a1 (diff) | |
download | wallet-core-c0e6b6d0f66508ebc8d33502d1281cb48a1c9cc6.tar.xz |
run pending operations at least once, style fixes
Diffstat (limited to 'packages/taler-wallet-webextension')
-rw-r--r-- | packages/taler-wallet-webextension/src/wxBackend.ts | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/packages/taler-wallet-webextension/src/wxBackend.ts b/packages/taler-wallet-webextension/src/wxBackend.ts index c41dd4fba..4004f04f6 100644 --- a/packages/taler-wallet-webextension/src/wxBackend.ts +++ b/packages/taler-wallet-webextension/src/wxBackend.ts @@ -49,7 +49,7 @@ import { BrowserCryptoWorkerFactory } from "./browserCryptoWorkerFactory"; /** * Currently active wallet instance. Might be unloaded and * re-instantiated when the database is reset. - * + * * FIXME: Maybe move the wallet resetting into the Wallet class? */ let currentWallet: Wallet | undefined; @@ -215,8 +215,10 @@ function makeSyncWalletRedirect( ): Record<string, unknown> { const innerUrl = new URL(chrome.extension.getURL(url)); if (params) { - const hParams = Object.keys(params).map(k => `${k}=${params[k]}`).join('&') - innerUrl.hash = innerUrl.hash + '?' + hParams + const hParams = Object.keys(params) + .map((k) => `${k}=${params[k]}`) + .join("&"); + innerUrl.hash = innerUrl.hash + "?" + hParams; } if (isFirefox()) { // Some platforms don't support the sync redirect (yet), so fall back to @@ -272,8 +274,8 @@ async function reinitWallet(): Promise<void> { } } }); - wallet.runRetryLoop().catch((e) => { - console.log("error during wallet retry loop", e); + wallet.runTaskLoop().catch((e) => { + console.log("error during wallet task loop", e); }); // Useful for debugging in the background page. (window as any).talerWallet = wallet; |