From c0e6b6d0f66508ebc8d33502d1281cb48a1c9cc6 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 19 Aug 2021 15:12:33 +0200 Subject: run pending operations at least once, style fixes --- packages/taler-wallet-webextension/src/wxBackend.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'packages/taler-wallet-webextension/src/wxBackend.ts') 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 { 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 { } } }); - 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; -- cgit v1.2.3