summaryrefslogtreecommitdiff
path: root/src/content/staticNS.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/staticNS.js')
-rw-r--r--src/content/staticNS.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/content/staticNS.js b/src/content/staticNS.js
index e23fed9..c1dbfa4 100644
--- a/src/content/staticNS.js
+++ b/src/content/staticNS.js
@@ -4,13 +4,12 @@
let backlog = new Set();
let stopAndReload = beforeReloading => {
- stop();
- let navTimes = performance.getEntriesByType && performance.getEntriesByType("navigation")[0];
- debug("Should I reload? %o, now: %s", navTimes, performance.now())
- if (navTimes && navTimes.type === "reload" || performance.now() > 10000) {
+ debug("Should I reload? %o, now: %s", performance.now())
+ if (performance.now() > 10000) {
debug("Won't reload.");
return;
}
+ stop();
setTimeout(() => {
debug("Reloading...");
if (typeof beforeReloading === "function") {