mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-20 23:36:37 +08:00
checking if user cant quick restart when trying to bailout
This commit is contained in:
parent
cd5488974c
commit
c9afaa4918
|
@ -877,14 +877,13 @@ $(document).keydown(async (event) => {
|
|||
if (Config.mode == "zen") {
|
||||
TestLogic.finish();
|
||||
} else if (
|
||||
(Config.mode == "time" && Config.time === 0) ||
|
||||
(Config.mode == "words" && Config.words === 0)
|
||||
) {
|
||||
TestInput.setBailout(true);
|
||||
TestLogic.finish();
|
||||
} else if (
|
||||
Config.mode == "custom" &&
|
||||
CustomTextState.isCustomTextLong() === true
|
||||
!Misc.canQuickRestart(
|
||||
Config.mode,
|
||||
Config.words,
|
||||
Config.time,
|
||||
CustomText,
|
||||
CustomTextState.isCustomTextLong() ?? false
|
||||
)
|
||||
) {
|
||||
TestInput.setBailout(true);
|
||||
TestLogic.finish();
|
||||
|
|
Loading…
Reference in a new issue