fixed master mode not showing mistake

This commit is contained in:
Jack 2020-07-23 13:48:04 +01:00
parent a5f35807af
commit a6379a6b67

View file

@ -569,7 +569,13 @@ function compareInput(wrdIndex, input, showError) {
// $(letterElems[i]).removeClass('incorrect').addClass('correct');
} else {
if (config.difficulty == "master") {
if (!resultVisible) showResult(true);
if (!resultVisible) {
inputHistory.push(currentInput);
document
.querySelector("#words .word.active")
.setAttribute("input", currentInput);
showResult(true);
}
if (!afkDetected) {
let testNow = Date.now();
let testSeconds = roundTo2((testNow - testStart) / 1000);