aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/partials/js.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/js.html b/layouts/partials/js.html
index b398fbe..fbe102c 100644
--- a/layouts/partials/js.html
+++ b/layouts/partials/js.html
@@ -88,8 +88,8 @@
lastUpdated.innerHTML = '{{ T "lastChecked" }} ' + timeSince(lastUpdate) + ' {{ T "someTimeAgo" }}';
// Refresh almost every 5m
- if (lastUpdate > 290000) {
- location.reload;
+ if (Math.floor(new Date() - lastUpdate) > 290000) {
+ location.reload();
}
}
}, 5000)