mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-11 01:15:49 +08:00
fixed a bug with time popup breaking time itself
This commit is contained in:
parent
09a09b043d
commit
63b21f63dc
1 changed files with 3 additions and 3 deletions
|
@ -3176,8 +3176,8 @@ $(document).on("click", "#top .config .wordCount .text-button", (e) => {
|
|||
});
|
||||
|
||||
$(document).on("click", "#top .config .time .text-button", (e) => {
|
||||
time = $(e.currentTarget).attr("timeConfig");
|
||||
if (time == "custom") {
|
||||
let mode = $(e.currentTarget).attr("timeConfig");
|
||||
if (mode == "custom") {
|
||||
// let newTime = prompt("Custom time in seconds");
|
||||
// if (newTime !== null && !isNaN(newTime) && newTime > 0 && newTime <= 3600) {
|
||||
// changeTimeConfig(newTime);
|
||||
|
@ -3192,7 +3192,7 @@ $(document).on("click", "#top .config .time .text-button", (e) => {
|
|||
// }
|
||||
showCustomMode2Popup("time");
|
||||
} else {
|
||||
changeTimeConfig(time);
|
||||
changeTimeConfig(mode);
|
||||
manualRestart = true;
|
||||
|
||||
restartTest();
|
||||
|
|
Loading…
Reference in a new issue