Skip to content

Commit

Permalink
impr(typing): lazy mode will now be automatically enabled for arabic …
Browse files Browse the repository at this point in the history
…languages

closes #4765
  • Loading branch information
Miodec committed Nov 6, 2023
1 parent e1b8424 commit 79d1b35
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/src/ts/test/test-logic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 79d1b35

Please sign in to comment.