From ca65135681134d822af468e64336138556ee901d Mon Sep 17 00:00:00 2001 From: Michael Rasmussen Date: Wed, 3 Jun 2015 20:50:04 +0200 Subject: [PATCH] reload page when session expire --- js/timer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/timer.js b/js/timer.js index 5760242..092213d 100644 --- a/js/timer.js +++ b/js/timer.js @@ -7,13 +7,13 @@ function myTimer() { var expire = timeStart - elapsed; var timeLeft = Math.round(((expire % 86400000) % 3600000) / 60000); - if (timeLeft < 0) { + if (timeLeft < 1) { /*timeLeft = 'Expired'; document.getElementById("time").style.background = "red";*/ clearInterval(timerRef); location.reload(); } else { - timeLeft += 1; + //timeLeft += 1; timeLeft = '< ' + timeLeft + ' min'; } -- 2.39.2