summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhackademix2019-10-02 00:35:15 +0200
committerhackademix2019-10-02 00:35:15 +0200
commit3547c444954f1dbb7394bdad18291a1720d34fed (patch)
tree21d3592624a9b631674929ab8816714b7d9cf5d5 /src
parenta78117ff240043aa3e90e464f139599244528f89 (diff)
downloadnoscript-3547c444954f1dbb7394bdad18291a1720d34fed.tar.gz
noscript-3547c444954f1dbb7394bdad18291a1720d34fed.tar.xz
noscript-3547c444954f1dbb7394bdad18291a1720d34fed.zip
Prevent startup tabs to remain stuck with about:blank.
Diffstat (limited to 'src')
-rw-r--r--src/content/staticNS.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content/staticNS.js b/src/content/staticNS.js
index c1dbfa4..e5aaf3c 100644
--- a/src/content/staticNS.js
+++ b/src/content/staticNS.js
@@ -5,7 +5,7 @@
let stopAndReload = beforeReloading => {
debug("Should I reload? %o, now: %s", performance.now())
- if (performance.now() > 10000) {
+ if (location.href === "about:blank" || performance.now() > 10000 ) {
debug("Won't reload.");
return;
}