From 9846d02097fe0663f3e0c9252b4530a453d47f36 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sat, 19 Nov 2016 23:50:40 +0100 Subject: only inject in http(s) --- src/wxBackend.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wxBackend.ts b/src/wxBackend.ts index e8f10cf5c..0418a024f 100644 --- 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")); -- cgit v1.2.3