[themes] debug

This commit is contained in:
Maxim Kadushkin 2021-05-28 15:12:22 +03:00
parent 1a997d5444
commit a360e037b5

View file

@ -268,11 +268,13 @@ define([
document.body.className = document.body.className.replace(/theme-[\w-]+\s?/gi, '').trim();
document.body.classList.add(id, 'theme-type-' + themes_map[id].type);
var obj = get_current_theme_colors(name_colors);
obj.type = themes_map[id].type;
obj.name = id;
if ( this.api ) {
var obj = get_current_theme_colors(name_colors);
obj.type = themes_map[id].type;
obj.name = id;
this.api.asc_setSkin(obj);
this.api.asc_setSkin(obj);
}
Common.localStorage.setItem('ui-theme', id);
Common.NotificationCenter.trigger('uitheme:changed', id);