mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-10 05:35:05 +08:00
saving replay event earlier
This commit is contained in:
parent
9d9e879ebe
commit
5a018f65c5
1 changed files with 5 additions and 5 deletions
|
@ -475,6 +475,11 @@ function handleChar(char: string, charIndex: number): void {
|
|||
TestInput.input.current = resultingWord;
|
||||
}
|
||||
|
||||
Replay.addReplayEvent(
|
||||
thisCharCorrect ? "correctLetter" : "incorrectLetter",
|
||||
char
|
||||
);
|
||||
|
||||
if (!thisCharCorrect && Config.difficulty == "master") {
|
||||
TestInput.input.pushHistory();
|
||||
TestInput.corrected.pushHistory();
|
||||
|
@ -486,11 +491,6 @@ function handleChar(char: string, charIndex: number): void {
|
|||
return;
|
||||
}
|
||||
|
||||
Replay.addReplayEvent(
|
||||
thisCharCorrect ? "correctLetter" : "incorrectLetter",
|
||||
char
|
||||
);
|
||||
|
||||
//update the active word top, but only once
|
||||
if (
|
||||
TestInput.input.current.length === 1 &&
|
||||
|
|
Loading…
Reference in a new issue