From be3bcf16385e0f7baee0be00d09dbe436ad3bff1 Mon Sep 17 00:00:00 2001 From: Mantas <11616378+mistermantas@users.noreply.github.com> Date: Fri, 3 Aug 2018 10:54:54 +0300 Subject: Should be working now: #16, #15 --- layouts/partials/js.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'layouts/partials/js.html') 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; } } -- cgit v1.2.3-70-g09d2