Fixed typo causing accidental permissions/status mismatches being checked only while pages are still loading (thanks skriptimaahinen).

This commit is contained in:
hackademix 2018-08-23 15:57:09 +02:00
parent 80e1f10db5
commit fc6251c0ab
1 changed files with 1 additions and 1 deletions

View File

@ -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();