diff --git a/packages/taler-wallet-webextension/src/wxBackend.ts b/packages/taler-wallet-webextension/src/wxBackend.ts index 8bbfc0c1d..e1517c4cf 100644 --- a/packages/taler-wallet-webextension/src/wxBackend.ts +++ b/packages/taler-wallet-webextension/src/wxBackend.ts @@ -261,7 +261,13 @@ async function reinitWallet(): Promise { http, new BrowserCryptoWorkerFactory(), ); - await wallet.handleCoreApiRequest("initWallet", "native-init", {}); + try { + await wallet.handleCoreApiRequest("initWallet", "native-init", {}); + } catch (e) { + console.error("could not initialize wallet", e); + walletInit.reject(e); + return; + } wallet.addNotificationListener((x) => { for (const x of notificationPorts) { try {