mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-28 16:54:04 +08:00
no sleep needed
This commit is contained in:
parent
41b71fbf21
commit
2e284e364e
1 changed files with 3 additions and 3 deletions
|
@ -42,15 +42,15 @@ const debouncedZipfCheck = debounce(250, () => {
|
|||
});
|
||||
});
|
||||
|
||||
ConfigEvent.subscribe((eventKey, eventValue) => {
|
||||
ConfigEvent.subscribe((eventKey, eventValue, nosave) => {
|
||||
if (
|
||||
(eventKey === "language" || eventKey === "funbox") &&
|
||||
(eventValue as string).split("#").includes("zipf")
|
||||
) {
|
||||
debouncedZipfCheck();
|
||||
}
|
||||
if (eventKey === "fontSize") {
|
||||
Misc.sleep(0).then(() => updateWordsHeight(true));
|
||||
if (eventKey === "fontSize" && !nosave) {
|
||||
updateWordsHeight(true);
|
||||
}
|
||||
|
||||
if (eventValue === undefined || typeof eventValue !== "boolean") return;
|
||||
|
|
Loading…
Reference in a new issue