From 9a0202d49a443014fd253d74e417af8696583146 Mon Sep 17 00:00:00 2001 From: hackademix Date: Thu, 31 Oct 2019 17:32:48 +0100 Subject: Use pseudo-sync messaging to fetch policies for non-HTTP page loads only. --- src/content/staticNS.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/content') 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; } -- cgit v1.2.3