taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 584fbf04a65e090601c1b1a491eb66d9e5343ba2
parent 6e8a9a0e6638ed22533affb18e90e7a45aceeaf6
Author: Florian Dold <florian@dold.me>
Date:   Tue, 25 Nov 2025 00:06:57 +0100

webext: deal with orphaned content scripts

Diffstat:
Mpackages/taler-wallet-webextension/src/taler-wallet-interaction-loader.ts | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/packages/taler-wallet-webextension/src/taler-wallet-interaction-loader.ts b/packages/taler-wallet-webextension/src/taler-wallet-interaction-loader.ts @@ -298,6 +298,11 @@ async function start() { } }); notificationPort.onDisconnect.addListener(() => { + // Avoid orphans caused by reloading the extension + // from loading the unload script. + if (chrome.runtime.id == undefined) { + return; + } loadScript({ unload: true, });