aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-11-19 23:50:40 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-11-19 23:50:50 +0100
commit9846d02097fe0663f3e0c9252b4530a453d47f36 (patch)
tree829194207e29811b5fafed4dfb8a14a0c2831527
parent7b1511a243aa322462d29d15f19f9c2a8bfc67ef (diff)
downloadwallet-core-9846d02097fe0663f3e0c9252b4530a453d47f36.tar.xz
only inject in http(s)
-rw-r--r--src/wxBackend.ts4
1 files changed, 4 insertions, 0 deletions
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"));