mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-11 00:03:44 +08:00
fixed #548
This commit is contained in:
parent
2f3d254306
commit
4265160921
1 changed files with 2 additions and 0 deletions
|
@ -4261,6 +4261,7 @@ $(document).on("keypress", "#restartTestButton", (event) => {
|
|||
incompleteTestSeconds += testSeconds - afkseconds;
|
||||
restartCount++;
|
||||
}
|
||||
if (resultCalculating) return;
|
||||
restartTest();
|
||||
} else {
|
||||
Misc.showNotification("Quick restart disabled for long tests", 2000);
|
||||
|
@ -4270,6 +4271,7 @@ $(document).on("keypress", "#restartTestButton", (event) => {
|
|||
|
||||
$(document.body).on("click", "#restartTestButton", (event) => {
|
||||
manualRestart = true;
|
||||
if (resultCalculating) return;
|
||||
restartTest();
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue