[themes] fix bug 51545
This commit is contained in:
parent
5a7c45583d
commit
548c8eb759
|
@ -262,7 +262,8 @@ define([
|
||||||
|
|
||||||
currentThemeId: function () {
|
currentThemeId: function () {
|
||||||
var t = Common.localStorage.getItem('ui-theme') || Common.localStorage.getItem('ui-theme-id');
|
var t = Common.localStorage.getItem('ui-theme') || Common.localStorage.getItem('ui-theme-id');
|
||||||
return get_ui_theme_name(t) || id_default_light_theme;
|
var id = get_ui_theme_name(t);
|
||||||
|
return !!themes_map[id] ? id : id_default_light_theme;
|
||||||
},
|
},
|
||||||
|
|
||||||
defaultThemeId: function (type) {
|
defaultThemeId: function (type) {
|
||||||
|
|
Loading…
Reference in a new issue