mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-20 07:16:17 +08:00
style: only apply error underline when moving to the next word
This commit is contained in:
parent
142b51cc26
commit
24e94479d3
|
@ -899,14 +899,6 @@ export async function updateWordElement(inputOverride?: string): Promise<void> {
|
|||
ret += `<letter>` + currentWord[i] + "</letter>";
|
||||
}
|
||||
}
|
||||
|
||||
if (Config.highlightMode === "letter") {
|
||||
if (input.length > currentWord.length && !Config.blindMode) {
|
||||
wordAtIndex.classList.add("error");
|
||||
} else if (input.length === currentWord.length) {
|
||||
wordAtIndex.classList.remove("error");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
wordAtIndex.innerHTML = ret;
|
||||
|
|
Loading…
Reference in a new issue