aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials')
-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;
}
}