From 16ee3a9422746ed888266b325ba4858fa27269d2 Mon Sep 17 00:00:00 2001 From: Jack Date: Thu, 2 Jul 2020 20:44:36 +0100 Subject: [PATCH] should fix an issue where the themes would not be visible in the settings page --- public/js/userconfig.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/userconfig.js b/public/js/userconfig.js index 234963402..26a8fd952 100644 --- a/public/js/userconfig.js +++ b/public/js/userconfig.js @@ -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(); }