diff options
author | Florian Dold <florian@dold.me> | 2024-02-16 14:13:08 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-02-16 14:13:08 +0100 |
commit | 36393efaec7a09a272374c5bb6701d0b918f85d0 (patch) | |
tree | 5a7b820f2e1b4b370e523ee8f3e330ec83ae0278 /packages | |
parent | 0e6585a6e36242b490f4c81c3112c27c45c7013e (diff) |
-helpers moved
Diffstat (limited to 'packages')
-rw-r--r-- | packages/taler-wallet-webextension/src/wxBackend.ts | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/packages/taler-wallet-webextension/src/wxBackend.ts b/packages/taler-wallet-webextension/src/wxBackend.ts index c8df7d6ca..fb07b72a5 100644 --- a/packages/taler-wallet-webextension/src/wxBackend.ts +++ b/packages/taler-wallet-webextension/src/wxBackend.ts @@ -26,16 +26,17 @@ import { LogLevel, Logger, + OpenedPromise, TalerErrorCode, getErrorDetailFromException, makeErrorDetail, + openPromise, setGlobalLogLevelFromString, - setLogLevelFromString + setLogLevelFromString, } from "@gnu-taler/taler-util"; import { HttpRequestLibrary } from "@gnu-taler/taler-util/http"; import { DbAccess, - OpenedPromise, SetTimeoutTimerAPI, SynchronousCryptoWorkerFactoryPlain, Wallet, @@ -44,7 +45,6 @@ import { deleteTalerDatabase, exportDb, importDb, - openPromise, } from "@gnu-taler/taler-wallet-core"; import { BrowserHttpLib, @@ -53,7 +53,7 @@ import { import { MessageFromFrontend, MessageResponse } from "./platform/api.js"; import { platform } from "./platform/background.js"; import { ExtensionOperations } from "./taler-wallet-interaction-loader.js"; -import { BackgroundOperations, ExtendedPermissionsResponse } from "./wxApi.js"; +import { BackgroundOperations } from "./wxApi.js"; /** * Currently active wallet instance. Might be unloaded and @@ -144,7 +144,6 @@ const backendHandlers: BackendHandlerType = { setLoggingLevel, }; - async function setLoggingLevel({ tag, level, @@ -305,7 +304,7 @@ async function reinitWallet(): Promise<void> { wallet.addNotificationListener((message) => { platform.sendMessageToAllChannels({ type: "wallet", - notification: message + notification: message, }); }); @@ -355,7 +354,4 @@ export async function wxMain(): Promise<void> { } catch (e) { console.error(e); } - } - - |