From 7514aa20f959cd997e328cf8d15121d602a5c4fc Mon Sep 17 00:00:00 2001 From: hackademix Date: Sat, 8 Sep 2018 11:50:40 +0200 Subject: Saner message dispatching. --- src/content/content.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/content/content.js') diff --git a/src/content/content.js b/src/content/content.js index 3709bd1..c501282 100644 --- a/src/content/content.js +++ b/src/content/content.js @@ -51,8 +51,7 @@ var notifyPage = async () => { if (!("canScript" in ns)) { let childPolicy = await Messages.send("fetchChildPolicy", {url: document.URL}); if (!childPolicy) { - debug(`No answer to fetchChildPolicy message. Still initializing?`); - setTimeout(notifyPage, 300); + debug(`No answer to fetchChildPolicy message. This should not be happening.`); return; } ns.config.CURRENT = childPolicy.CURRENT; -- cgit v1.2.3