mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-24 23:07:25 +08:00
fixed double theme change
This commit is contained in:
parent
7c82bf6e82
commit
27b9c441b5
1 changed files with 1 additions and 1 deletions
|
|
@ -1260,7 +1260,7 @@ export function setTheme(name: string, nosave?: boolean): boolean {
|
|||
if (!isConfigValueValid("theme", name, ["string"])) return false;
|
||||
|
||||
config.theme = name;
|
||||
setCustomTheme(false);
|
||||
if (config.customTheme === true) setCustomTheme(false);
|
||||
saveToLocalStorage("theme", nosave);
|
||||
ConfigEvent.dispatch("theme", config.theme);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue