aboutsummaryrefslogtreecommitdiff
path: root/src/wxBackend.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/wxBackend.ts')
-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"));