mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-05 21:33:40 +08:00
quotes can now be repeated
This commit is contained in:
parent
2808f992c9
commit
bf74fd6e64
1 changed files with 5 additions and 10 deletions
|
@ -3212,6 +3212,9 @@ function restartTest(withSameWordset = false, nosave = false, event) {
|
|||
initPaceCaret();
|
||||
showWords();
|
||||
}
|
||||
if (config.mode === "quote") {
|
||||
sameWordset = false;
|
||||
}
|
||||
if (config.keymapMode !== "off") {
|
||||
showKeymap();
|
||||
} else {
|
||||
|
@ -4928,11 +4931,7 @@ $(document.body).on("click", "#restartTestButtonWithSameWordset", () => {
|
|||
return;
|
||||
}
|
||||
manualRestart = true;
|
||||
if (config.mode === "quote") {
|
||||
restartTest();
|
||||
} else {
|
||||
restartTest(true);
|
||||
}
|
||||
restartTest(true);
|
||||
});
|
||||
|
||||
$(document).on("keypress", "#restartTestButtonWithSameWordset", (event) => {
|
||||
|
@ -4941,11 +4940,7 @@ $(document).on("keypress", "#restartTestButtonWithSameWordset", (event) => {
|
|||
return;
|
||||
}
|
||||
if (event.keyCode == 13) {
|
||||
if (config.mode === "quote") {
|
||||
restartTest();
|
||||
} else {
|
||||
restartTest(true);
|
||||
}
|
||||
restartTest(true);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue