mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-05 21:33:40 +08:00
allowing test restarting
This commit is contained in:
parent
35941a9980
commit
7d02d57d40
1 changed files with 10 additions and 3 deletions
|
@ -4928,8 +4928,11 @@ $(document.body).on("click", "#restartTestButtonWithSameWordset", () => {
|
|||
return;
|
||||
}
|
||||
manualRestart = true;
|
||||
|
||||
restartTest(true);
|
||||
if (config.mode === "quote") {
|
||||
restartTest();
|
||||
} else {
|
||||
restartTest(true);
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on("keypress", "#restartTestButtonWithSameWordset", (event) => {
|
||||
|
@ -4938,7 +4941,11 @@ $(document).on("keypress", "#restartTestButtonWithSameWordset", (event) => {
|
|||
return;
|
||||
}
|
||||
if (event.keyCode == 13) {
|
||||
restartTest(true);
|
||||
if (config.mode === "quote") {
|
||||
restartTest();
|
||||
} else {
|
||||
restartTest(true);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue