mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-30 18:57:27 +08:00
fixed out of error
This commit is contained in:
parent
3cbf46d181
commit
cd2220358c
1 changed files with 11 additions and 0 deletions
|
|
@ -1031,6 +1031,17 @@ function updateTimer() {
|
|||
$("#timerNumber").html(`${inputHistory.length}/${outof}`);
|
||||
// $("#timerNumber").html(config.time - time);
|
||||
} else if (config.timerStyle === "mini") {
|
||||
let outof = wordsList.length;
|
||||
if (config.mode === "words") {
|
||||
outof = config.words;
|
||||
}
|
||||
if (config.mode === "custom") {
|
||||
if (customTextIsRandom) {
|
||||
outof = customTextWordCount;
|
||||
} else {
|
||||
outof = customText.length;
|
||||
}
|
||||
}
|
||||
$("#miniTimerAndLiveWpm .time").html(`${inputHistory.length}/${outof}`);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue