mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-21 15:56:24 +08:00
Insert the typo on the letter tag
This commit is contained in:
parent
7e725b28ed
commit
2936a0892f
|
@ -907,7 +907,7 @@ function compareInput(showError) {
|
|||
if (currentWord[i] == undefined) {
|
||||
ret += '<letter class="incorrect extra">' + input[i] + "</letter>";
|
||||
} else {
|
||||
ret += '<letter class="incorrect">' + currentWord[i] + "</letter>";
|
||||
ret += '<letter class="incorrect">' + currentWord[i] + (config.indicateTypos ? `<hint>${input[i]}</hint>` : '') + "</letter>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue