diff options
author | hackademix | 2019-10-02 00:35:15 +0200 |
---|---|---|
committer | hackademix | 2019-10-02 00:35:15 +0200 |
commit | 3547c444954f1dbb7394bdad18291a1720d34fed (patch) | |
tree | 21d3592624a9b631674929ab8816714b7d9cf5d5 /src/content | |
parent | a78117ff240043aa3e90e464f139599244528f89 (diff) | |
download | noscript-3547c444954f1dbb7394bdad18291a1720d34fed.tar.gz noscript-3547c444954f1dbb7394bdad18291a1720d34fed.tar.xz noscript-3547c444954f1dbb7394bdad18291a1720d34fed.zip |
Prevent startup tabs to remain stuck with about:blank.
Diffstat (limited to 'src/content')
-rw-r--r-- | src/content/staticNS.js | 2 |
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; } |