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