mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-06 13:55:19 +08:00
Disabled the repeat test button in zen mode
This commit is contained in:
parent
d41f9b222c
commit
b41bc01017
1 changed files with 8 additions and 0 deletions
|
@ -4797,12 +4797,20 @@ $(document.body).on("click", "#showWordHistoryButton", () => {
|
|||
});
|
||||
|
||||
$(document.body).on("click", "#restartTestButtonWithSameWordset", () => {
|
||||
if (config.mode == "zen") {
|
||||
Notifications.add("Repeat test disabled in zen mode");
|
||||
return;
|
||||
}
|
||||
manualRestart = true;
|
||||
|
||||
restartTest(true);
|
||||
});
|
||||
|
||||
$(document).on("keypress", "#restartTestButtonWithSameWordset", (event) => {
|
||||
if (config.mode == "zen") {
|
||||
Notifications.add("Repeat test disabled in zen mode");
|
||||
return;
|
||||
}
|
||||
if (event.keyCode == 13) {
|
||||
restartTest(true);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue