fix eslint errors
This commit is contained in:
parent
2bcac05534
commit
6cee6fbf91
|
@ -102,7 +102,7 @@
|
|||
} else {
|
||||
console.error("Unsupported type");
|
||||
}
|
||||
} else if (defaultValue !== undefined) {
|
||||
} else if (typeof defaultValue !== "undefined") {
|
||||
return defaultValue;
|
||||
}
|
||||
|
||||
|
@ -165,7 +165,10 @@
|
|||
const trivabble = window.trivabble = {l10n: _};
|
||||
|
||||
function format(s, v1, v2, v3) {
|
||||
return s.replace("{0}", v1).replace("{1}", v2).replace("{2}", v3);
|
||||
return s
|
||||
.replace("{0}", v1)
|
||||
.replace("{1}", v2)
|
||||
.replace("{2}", v3);
|
||||
}
|
||||
|
||||
let board;
|
||||
|
@ -2268,7 +2271,7 @@
|
|||
setTimerState(getSetting("TimerEnable", getSetting("ENABLE_TIMER")));
|
||||
}
|
||||
|
||||
let timerTimeout = 0
|
||||
let timerTimeout = 0;
|
||||
|
||||
function updateTimer() {
|
||||
const currentTimer = timerDate();
|
||||
|
@ -2280,7 +2283,7 @@
|
|||
setSetting("TimerEnable", enabled);
|
||||
if (timerTimeout) {
|
||||
clearInterval(timerTimeout);
|
||||
timerTimeout = 0
|
||||
timerTimeout = 0;
|
||||
}
|
||||
|
||||
if (enabled) {
|
||||
|
|
Loading…
Reference in New Issue