mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-02 21:44:06 +08:00
parent
a4ee31a4bb
commit
028e155be9
1 changed files with 6 additions and 4 deletions
|
|
@ -1735,10 +1735,12 @@ $(document).on("click", "#top #menu #startTestButton, #top .logo", () => {
|
|||
// ===============================
|
||||
|
||||
ConfigEvent.subscribe((eventKey, eventValue, nosave) => {
|
||||
if (eventKey === "difficulty" && !nosave) restart(false, nosave);
|
||||
if (eventKey === "showAllLines" && !nosave) restart(false, nosave);
|
||||
if (eventKey === "keymapMode" && !nosave) restart(false, nosave);
|
||||
if (eventKey === "tapeMode" && !nosave) restart(false, nosave);
|
||||
if (ActivePage.get() === "test") {
|
||||
if (eventKey === "difficulty" && !nosave) restart(false, nosave);
|
||||
if (eventKey === "showAllLines" && !nosave) restart(false, nosave);
|
||||
if (eventKey === "keymapMode" && !nosave) restart(false, nosave);
|
||||
if (eventKey === "tapeMode" && !nosave) restart(false, nosave);
|
||||
}
|
||||
if (eventKey === "lazyMode" && eventValue === false && !nosave) {
|
||||
rememberLazyMode = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue