From 78b056a0b1613ef19d1d72c17fd256c2e86e6774 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 9 Jun 2022 14:16:28 -0300 Subject: remove listener on unload --- packages/taler-wallet-webextension/src/wxApi.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'packages/taler-wallet-webextension/src/wxApi.ts') diff --git a/packages/taler-wallet-webextension/src/wxApi.ts b/packages/taler-wallet-webextension/src/wxApi.ts index 9d704e6e2..7ee14261a 100644 --- a/packages/taler-wallet-webextension/src/wxApi.ts +++ b/packages/taler-wallet-webextension/src/wxApi.ts @@ -42,6 +42,7 @@ import { GetFeeForDepositRequest, GetWithdrawalDetailsForUriRequest, KnownBankAccounts, + Logger, NotificationType, PrepareDepositRequest, PrepareDepositResponse, @@ -76,6 +77,7 @@ import { platform, MessageFromBackend } from "./platform/api.js"; export interface ExtendedPermissionsResponse { newValue: boolean; } +const logger = new Logger("wxApi"); /** * Response with information about available version upgrades. @@ -106,7 +108,7 @@ async function callBackend(operation: string, payload: any): Promise { console.log("Error calling backend"); throw new Error(`Error contacting backend: ${e}`); } - console.log("got response", response); + logger.info("got response", response); if (response.type === "error") { throw TalerError.fromUncheckedDetail(response.error); } -- cgit v1.2.3