Insert the typo on the letter tag

This commit is contained in:
willerbee 2020-09-25 16:23:32 +08:00 committed by GitHub
parent 7e725b28ed
commit 2936a0892f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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