mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-05 23:15:08 +08:00
impr(typing): lazy mode will now be automatically enabled for arabic languages
closes #4765
This commit is contained in:
parent
e1b8424070
commit
79d1b354a9
1 changed files with 4 additions and 0 deletions
|
|
@ -1520,6 +1520,10 @@ $("header").on("click", "nav #startTestButton, #logo", () => {
|
|||
ConfigEvent.subscribe((eventKey, eventValue, nosave) => {
|
||||
if (ActivePage.get() === "test") {
|
||||
if (eventKey === "language") {
|
||||
//automatically enable lazy mode for arabic
|
||||
if ((eventValue as string)?.startsWith("arabic")) {
|
||||
UpdateConfig.setLazyMode(true, true);
|
||||
}
|
||||
restart();
|
||||
}
|
||||
if (eventKey === "difficulty" && !nosave) restart();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue