taler-typescript-core

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

commit 8c62697752f28468718360955ee3679b89dfe4ae
parent 2f2280e73500305a74bb52245c8f4c948ba395e8
Author: Sebastian <sebasjm@taler-systems.com>
Date:   Tue, 21 Jul 2026 17:49:07 -0300

missing close bracket

Diffstat:
Mpackages/taler-wallet-webextension/src/platform/chrome.ts | 16++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/packages/taler-wallet-webextension/src/platform/chrome.ts b/packages/taler-wallet-webextension/src/platform/chrome.ts @@ -592,7 +592,7 @@ async function registerIconChangeOnTalerContent(): Promise<void> { const secureTalerUrlLookup = { conditions: [ new chrome.declarativeContent.PageStateMatcher({ - css: ["a[href^='taler://'"], + css: ["a[href^='taler://']"], }), ], actions: [new chrome.declarativeContent.SetIcon({ imageData })], @@ -600,7 +600,7 @@ async function registerIconChangeOnTalerContent(): Promise<void> { const inSecureTalerUrlLookup = { conditions: [ new chrome.declarativeContent.PageStateMatcher({ - css: ["a[href^='taler+http://'"], + css: ["a[href^='taler+http://']"], }), ], actions: [new chrome.declarativeContent.SetIcon({ imageData })], @@ -662,11 +662,11 @@ function useServiceWorkerAsBackgroundProcess(): boolean { } function searchForTalerLinks(): string | undefined { - let found; - found = document.querySelector("a[href^='taler://'"); - if (found) return found.toString(); - found = document.querySelector("a[href^='taler+http://'"); - if (found) return found.toString(); + let found:HTMLAnchorElement | null; + found = document.querySelector("a[href^='taler://']"); + if (found) return found.href; + found = document.querySelector("a[href^='taler+http://']"); + if (found) return found.href; return undefined; } @@ -704,7 +704,7 @@ async function findTalerUriInTab(tabId: number): Promise<string | undefined> { { code: ` (() => { - let x = document.querySelector("a[href^='taler://'") || document.querySelector("a[href^='taler+http://'"); + let x = document.querySelector("a[href^='taler://']") || document.querySelector("a[href^='taler+http://']"); return x ? x.href.toString() : null; })(); `,