summaryrefslogtreecommitdiff
path: root/src/content
diff options
context:
space:
mode:
authorhackademix2018-07-28 02:19:48 +0200
committerhackademix2018-07-28 02:19:48 +0200
commitd45209060fe4c03c37a3d0e3211e4d30a4beae14 (patch)
tree90ca928d346190c621fbab22867dcebaeb03eb7b /src/content
parent10d0809b74eeb59452073644ac1c97db27fc0036 (diff)
downloadnoscript-d45209060fe4c03c37a3d0e3211e4d30a4beae14.tar.gz
noscript-d45209060fe4c03c37a3d0e3211e4d30a4beae14.tar.xz
noscript-d45209060fe4c03c37a3d0e3211e4d30a4beae14.zip
Fixed window.stop() called in empty suframes.
Diffstat (limited to 'src/content')
-rw-r--r--src/content/content.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content/content.js b/src/content/content.js
index aea705e..b5905c8 100644
--- a/src/content/content.js
+++ b/src/content/content.js
@@ -104,7 +104,7 @@ async function init(oldPage = false) {
document.URL, document.contentType, document.readyState, window.frameElement && frameElement.data);
try {
- let {canScript, shouldScript} = await browser.runtime.sendMessage({type: "canScript"});
+ let {canScript, shouldScript} = await browser.runtime.sendMessage({type: "canScript", url: document.URL});
debug(`document %s, canScript=%s, shouldScript=%s, readyState %s`, document.URL, canScript, shouldScript, document.readyState);
if (canScript) {
if (oldPage) {