From a6379a6b67ef69b6493c8c4997d09ebcf7ea852a Mon Sep 17 00:00:00 2001 From: Jack Date: Thu, 23 Jul 2020 13:48:04 +0100 Subject: [PATCH] fixed master mode not showing mistake --- public/js/script.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/public/js/script.js b/public/js/script.js index 0eb5e4087..e24bdabe5 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -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);