summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhackademix2018-08-23 15:57:09 +0200
committerhackademix2018-08-23 15:57:09 +0200
commitfc6251c0ab5baf917f892166c40f33cb9d7bff13 (patch)
tree994bacc34dc885204871647dae38d5f4f9a8df37 /src
parent80e1f10db51a4f78b3c89df5e347185a5ba16cb4 (diff)
downloadnoscript-fc6251c0ab5baf917f892166c40f33cb9d7bff13.tar.gz
noscript-fc6251c0ab5baf917f892166c40f33cb9d7bff13.tar.xz
noscript-fc6251c0ab5baf917f892166c40f33cb9d7bff13.zip
Fixed typo causing accidental permissions/status mismatches being checked only while pages are still loading (thanks skriptimaahinen).
Diffstat (limited to 'src')
-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 22dbf1e..9e40cc1 100644
--- a/src/content/content.js
+++ b/src/content/content.js
@@ -185,7 +185,7 @@ async function init(oldPage = false) {
}
if (!shouldScript &&
(document.readyState !== "complete" ||
- now() - performance.timing.domContentLoadedEvenStart < 5000)) {
+ now() - performance.timing.domContentLoadedEventStart < 5000)) {
// Something wrong: scripts can run, permissions say they shouldn't.
// Was webRequest bypassed by caching/session restore/service workers?
window.stop();