impr(typing): lazy mode will now be automatically enabled for arabic languages

closes #4765
This commit is contained in:
Miodec 2023-11-06 13:30:50 +00:00
parent e1b8424070
commit 79d1b354a9

View file

@ -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();