fixed out of error

This commit is contained in:
Jack 2020-08-27 20:47:25 +01:00
parent 3cbf46d181
commit cd2220358c

View file

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