From fc6251c0ab5baf917f892166c40f33cb9d7bff13 Mon Sep 17 00:00:00 2001 From: hackademix Date: Thu, 23 Aug 2018 15:57:09 +0200 Subject: Fixed typo causing accidental permissions/status mismatches being checked only while pages are still loading (thanks skriptimaahinen). --- src/content/content.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/content/content.js') 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(); -- cgit v1.2.3