summaryrefslogtreecommitdiff
path: root/src/content/content.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/content.js')
-rw-r--r--src/content/content.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/content/content.js b/src/content/content.js
index fc76906..dc493c2 100644
--- a/src/content/content.js
+++ b/src/content/content.js
@@ -49,15 +49,9 @@ var notifyPage = async () => {
if (document.readyState === "complete") {
try {
if (!("canScript" in ns)) {
- let childPolicy = await Messages.send("fetchChildPolicy", {url: document.URL});
- if (!childPolicy) {
- debug(`No answer to fetchChildPolicy message. This should not be happening.`);
- return;
- }
- ns.setup(childPolicy.permissions, childPolicy.MARKER);
+ ns.fetchPolicy();
return;
}
-
await Messages.send("pageshow", {seen: seen.list, canScript: ns.canScript});
return true;
} catch (e) {