diff options
author | hackademix | 2018-09-08 11:50:40 +0200 |
---|---|---|
committer | hackademix | 2018-09-08 11:50:40 +0200 |
commit | 7514aa20f959cd997e328cf8d15121d602a5c4fc (patch) | |
tree | 68e23c72ca9086b0f45b36a339dfb875a2cf65fe /src/content | |
parent | 9edcf2f1f7f38c7cc933f467545a330391f70fbe (diff) | |
download | noscript-7514aa20f959cd997e328cf8d15121d602a5c4fc.tar.gz noscript-7514aa20f959cd997e328cf8d15121d602a5c4fc.tar.xz noscript-7514aa20f959cd997e328cf8d15121d602a5c4fc.zip |
Saner message dispatching.
Diffstat (limited to 'src/content')
-rw-r--r-- | src/content/content.js | 3 |
1 files changed, 1 insertions, 2 deletions
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; |