mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-22 00:06:16 +08:00
showing a message when trying to repeat test with unsupported funbox
This commit is contained in:
parent
d8a1ddcd43
commit
ce18f6449a
|
@ -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…
Reference in a new issue