only inject in http(s)
This commit is contained in:
parent
7b1511a243
commit
9846d02097
@ -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"));
|
||||
|
Loading…
Reference in New Issue
Block a user