aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/js.html
diff options
context:
space:
mode:
authorMantas <11616378+mistermantas@users.noreply.github.com>2018-08-03 10:54:54 +0300
committerMantas <11616378+mistermantas@users.noreply.github.com>2018-08-03 10:54:54 +0300
commitbe3bcf16385e0f7baee0be00d09dbe436ad3bff1 (patch)
tree24f0be1a1e4f4d2216463023d4dec5400dfdd2a4 /layouts/partials/js.html
parent1f1d50cb4722c7064e7d3a66d91d8dfa0f610cac (diff)
Should be working now: #16, #15
Diffstat (limited to 'layouts/partials/js.html')
-rw-r--r--layouts/partials/js.html5
1 files changed, 2 insertions, 3 deletions
diff --git a/layouts/partials/js.html b/layouts/partials/js.html
index 1896127..fb7b802 100644
--- a/layouts/partials/js.html
+++ b/layouts/partials/js.html
@@ -64,9 +64,8 @@
if (hasClass(document.querySelector('body'), 'status-homepage')) {
lastUpdated.innerHTML = 'Last checked ' + timeSince(lastUpdate) + ' ago';
- var lastUpdateTime = new Date() - lastUpdate;
- // Refresh every 4m 30s
- if (lastUpdateTime > 290000) {
+ // Refresh almost every 5m
+ if (lastUpdate > 290000) {
location.reload;
}
}