unicorn/no-lonely-if

Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
Dan Schaper
2021-01-02 20:23:52 -08:00
parent e763993574
commit 2976254bbc
3 changed files with 6 additions and 6 deletions

View File

@@ -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);