mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-11 08:14:11 +08:00
fixed bailout not working in infinite custom tests. closes #1226
This commit is contained in:
parent
bc3b6b67be
commit
40beef23a6
1 changed files with 2 additions and 2 deletions
|
@ -22,14 +22,14 @@ function canBailOut() {
|
|||
return (
|
||||
(Config.mode === "custom" &&
|
||||
CustomText.isWordRandom &&
|
||||
CustomText.word >= 5000) ||
|
||||
(CustomText.word >= 5000 || CustomText.word == 0)) ||
|
||||
(Config.mode === "custom" &&
|
||||
!CustomText.isWordRandom &&
|
||||
!CustomText.isTimeRandom &&
|
||||
CustomText.text.length >= 5000) ||
|
||||
(Config.mode === "custom" &&
|
||||
CustomText.isTimeRandom &&
|
||||
CustomText.time >= 3600) ||
|
||||
(CustomText.time >= 3600 || CustomText.time == 0)) ||
|
||||
(Config.mode === "words" && Config.words >= 5000) ||
|
||||
Config.words === 0 ||
|
||||
(Config.mode === "time" && (Config.time >= 3600 || Config.time === 0)) ||
|
||||
|
|
Loading…
Reference in a new issue