vanilla js for m o r e s p e e d

This commit is contained in:
Miodec 2022-10-18 03:11:59 +02:00
parent 4c2e7ee5cb
commit 6d75b64666

View file

@ -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");
}
}
}