diff --git a/apps/common/main/lib/controller/Themes.js b/apps/common/main/lib/controller/Themes.js index 0a5bc48e7..f28783d6b 100644 --- a/apps/common/main/lib/controller/Themes.js +++ b/apps/common/main/lib/controller/Themes.js @@ -209,7 +209,9 @@ define([ }) this.api = api; - var theme_name = Common.localStorage.getItem('ui-theme') || id_default_light_theme; + var theme_name = Common.localStorage.getItem('ui-theme'); + if ( !!themes_map[theme_name] ) + theme_name = id_default_light_theme; if ( !$('body').hasClass(theme_name) ) { $('body').addClass(theme_name);