From a022472808097f74f14a9fa72f43abffccd272a2 Mon Sep 17 00:00:00 2001 From: Michael Rasmussen Date: Thu, 4 Jun 2015 01:24:44 +0200 Subject: [PATCH] Fix timer --- js/timer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/timer.js b/js/timer.js index d21a487..f68f084 100644 --- a/js/timer.js +++ b/js/timer.js @@ -22,7 +22,7 @@ function myTimer() { document.getElementById("timer").innerHTML = timeLeft; } } else { - if (timeLeft < last || last == -1) { + if ((timeLeft < last && timeLeft > 0) || last == -1) { last = timeLeft; console.log('Session valid < ' + timeLeft); timeLeft = '< ' + timeLeft + ' min'; -- 2.39.2