From: Michael Rasmussen Date: Wed, 3 Jun 2015 23:19:07 +0000 (+0200) Subject: Fix timer X-Git-Url: http://git.datanom.net/qtadmin.git/commitdiff_plain/4dc7954a21df27ffaf3fdf4078f291f5d91d5e6a Fix timer --- diff --git a/js/timer.js b/js/timer.js index 4825655..d21a487 100644 --- a/js/timer.js +++ b/js/timer.js @@ -13,7 +13,7 @@ function myTimer() { console.log('Session expired, reload page'); last = -1; location.reload(); - } else if (timeLeft < 2) { + } else if (timeLeft == 1) { if (timeLeft < last || last == -1) { last = timeLeft; timeLeft = '< ' + timeLeft + ' min';