Coerce enableTimer text with Number() for consistency

The startup timer setup used `Math.trunc(enaT.text())` while `countDown()`
uses `Math.trunc(Number(enaT.text()))`. Both work (the stored value is a
clean millisecond timestamp), but wrap the value in `Number()` here too so
the two call sites read the `#enableTimer` text identically.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2026-07-12 16:57:44 +02:00
parent d66df6fda8
commit 089cdf0ceb
+1 -1
View File
@@ -615,7 +615,7 @@ $(() => {
}
const enaT = $("#enableTimer");
const target = new Date(Math.trunc(enaT.text()));
const target = new Date(Math.trunc(Number(enaT.text())));
const seconds = Math.round((target.getTime() - Date.now()) / 1000);
if (seconds > 0) {
setTimeout(countDown, 100);