X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/4dc7954a21df27ffaf3fdf4078f291f5d91d5e6a..1e354d2079b77adb249465d86e86fa8a59f9dc4e:/js/timer.js 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';