mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-28 16:54:04 +08:00
vanilla js for m o r e s p e e d
This commit is contained in:
parent
4c2e7ee5cb
commit
6d75b64666
1 changed files with 2 additions and 2 deletions
|
@ -539,9 +539,9 @@ export function updateWordElement(showError = !Config.blindMode): void {
|
|||
|
||||
if (Config.highlightMode === "letter" && Config.hideExtraLetters) {
|
||||
if (input.length > currentWord.length && !Config.blindMode) {
|
||||
$(wordAtIndex).addClass("error");
|
||||
wordAtIndex.classList.add("error");
|
||||
} else if (input.length == currentWord.length) {
|
||||
$(wordAtIndex).removeClass("error");
|
||||
wordAtIndex.classList.remove("error");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue