mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-14 09:36:00 +08:00
fixed master mode not showing mistake
This commit is contained in:
parent
a5f35807af
commit
a6379a6b67
1 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue