showing a message when trying to repeat test with unsupported funbox

This commit is contained in:
Jack 2021-10-18 16:17:42 +01:00
parent d8a1ddcd43
commit ce18f6449a

View file

@ -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();
}