mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 20:55:28 +00:00
unicorn/no-lonely-if
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
@@ -44,7 +44,7 @@ function countDown() {
|
||||
var ena = $("#enableLabel");
|
||||
var enaT = $("#enableTimer");
|
||||
var target = new Date(parseInt(enaT.html(), 10));
|
||||
var seconds = Math.round((target.getTime() - Date.now() / 1000);
|
||||
var seconds = Math.round((target.getTime() - Date.now()) / 1000);
|
||||
|
||||
if (seconds > 0) {
|
||||
setTimeout(countDown, 1000);
|
||||
|
||||
Reference in New Issue
Block a user