mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-10 05:35:05 +08:00
missing replay event
This commit is contained in:
parent
7f428db379
commit
e780914ed2
1 changed files with 5 additions and 0 deletions
|
@ -466,6 +466,11 @@ function handleChar(char: string, charIndex: number): void {
|
|||
TestInput.updateLastKeypress();
|
||||
TestInput.pushKeypressWord(TestWords.words.currentIndex);
|
||||
|
||||
Replay.addReplayEvent(
|
||||
thisCharCorrect ? "correctLetter" : "incorrectLetter",
|
||||
char
|
||||
);
|
||||
|
||||
if (!thisCharCorrect && Config.difficulty == "master") {
|
||||
TestInput.input.pushHistory();
|
||||
TestInput.corrected.pushHistory();
|
||||
|
|
Loading…
Reference in a new issue