From 374fbdfd9a72cccae0ff33357e7a0e8cdd3fdc2f Mon Sep 17 00:00:00 2001 From: typer Date: Thu, 10 Sep 2020 22:59:35 -0700 Subject: [PATCH] cleaned up a couple lines --- public/js/script.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/js/script.js b/public/js/script.js index fe3432353..0117a0cc0 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -2314,8 +2314,6 @@ function startTest() { } testActive = true; testStart = Date.now(); - const stepIntervalMS = 1000; - const expectedStepEnd = testStart + stepIntervalMS; // if (config.mode == "time") { restartTimer(); showTimer(); @@ -2336,6 +2334,7 @@ function startTest() { }, }; //use a recursive self-adjusting timer to avoid time drift + const stepIntervalMS = 1000; (function loop(expectedStepEnd) { const delay = expectedStepEnd - Date.now(); timer = setTimeout(function () {