summaryrefslogtreecommitdiff
path: root/src/content
diff options
context:
space:
mode:
authorhackademix2019-10-31 17:32:48 +0100
committerhackademix2019-10-31 17:33:23 +0100
commit9a0202d49a443014fd253d74e417af8696583146 (patch)
treec4bbc484695e577321d8447708b84c29a58f6e42 /src/content
parent7e85f22d58938751d360b20f6ac6c03a499da984 (diff)
downloadnoscript-9a0202d49a443014fd253d74e417af8696583146.tar.gz
noscript-9a0202d49a443014fd253d74e417af8696583146.tar.xz
noscript-9a0202d49a443014fd253d74e417af8696583146.zip
Use pseudo-sync messaging to fetch policies for non-HTTP page loads only.
Diffstat (limited to 'src/content')
-rw-r--r--src/content/staticNS.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/content/staticNS.js b/src/content/staticNS.js
index 447d619..8f447e7 100644
--- a/src/content/staticNS.js
+++ b/src/content/staticNS.js
@@ -35,9 +35,9 @@
fetchPolicy() {
let url = document.URL;
- if (!UA.isMozilla && url.startsWith("http")) {
+ if (url.startsWith("http")) {
(async () => {
- this.setup(await Messages.send("fetchPolicy", {url, contextUrl: url}));
+ this.setup(await Messages.send("fetchChildPolicy", {url, contextUrl: url}));
})();
return;
}