taler-typescript-core

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

commit 9846d02097fe0663f3e0c9252b4530a453d47f36
parent 7b1511a243aa322462d29d15f19f9c2a8bfc67ef
Author: Florian Dold <florian.dold@gmail.com>
Date:   Sat, 19 Nov 2016 23:50:40 +0100

only inject in http(s)

Diffstat:
Msrc/wxBackend.ts | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/wxBackend.ts b/src/wxBackend.ts @@ -471,6 +471,10 @@ export function wxMain() { if (!tab.url || !tab.id) { return; } + let uri = URI(tab.url); + if (!(uri.protocol() == "http" || uri.protocol() == "https")) { + return; + } let code = ` if (document.documentElement.getAttribute("data-taler-nojs")) { document.dispatchEvent(new Event("taler-probe-result"));