mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-03 20:40:48 +08:00
should fix an issue where the themes would not be visible in the settings page
This commit is contained in:
parent
f1973f71cf
commit
16ee3a9422
1 changed files with 2 additions and 2 deletions
|
@ -476,13 +476,13 @@ function setTheme(name,nosave) {
|
|||
}
|
||||
|
||||
function setCustomTheme(boolean, nosave) {
|
||||
config.customTheme = boolean;
|
||||
if(boolean !== undefined) config.customTheme = boolean;
|
||||
// setCustomThemeColors(config.customThemeColors, nosave);
|
||||
if(!nosave) saveConfigToCookie();
|
||||
}
|
||||
|
||||
function setCustomThemeColors(colors, nosave){
|
||||
config.customThemeColors = colors;
|
||||
if(colors !== undefined) config.customThemeColors = colors;
|
||||
if(!nosave) saveConfigToCookie();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue