mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-02 12:00:10 +08:00
fixed word highlight and blind mode
This commit is contained in:
parent
b2891f488e
commit
81e8908548
1 changed files with 3 additions and 0 deletions
|
@ -939,6 +939,9 @@ function compareInput(showError) {
|
|||
correctSoFar = true;
|
||||
}
|
||||
let classString = correctSoFar ? "correct" : "incorrect";
|
||||
if (config.blindMode) {
|
||||
classString = "correct";
|
||||
}
|
||||
for (let i = 0; i < currentWord.length; i++) {
|
||||
ret += `<letter class="${classString}">` + currentWord[i] + `</letter>`;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue