mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-25 07:17:23 +08:00
showing a message when trying to repeat test with unsupported funbox
This commit is contained in:
parent
d8a1ddcd43
commit
ce18f6449a
1 changed files with 9 additions and 1 deletions
|
|
@ -954,7 +954,15 @@ export function restart(
|
|||
Replay.stopReplayRecording();
|
||||
words.resetCurrentIndex();
|
||||
input.reset();
|
||||
await Funbox.activate();
|
||||
if (Config.funbox === "plus_one" || Config.funbox === "plus_two") {
|
||||
Notifications.add(
|
||||
"Sorry, this funbox won't work with repeated tests.",
|
||||
0
|
||||
);
|
||||
await Funbox.activate("none");
|
||||
} else {
|
||||
await Funbox.activate();
|
||||
}
|
||||
TestUI.showWords();
|
||||
PaceCaret.init();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue