[themes] debug
This commit is contained in:
parent
d936e8765e
commit
f1ea7b3d43
|
@ -261,7 +261,7 @@ define([
|
||||||
obj.name = theme_name;
|
obj.name = theme_name;
|
||||||
api.asc_setSkin(obj);
|
api.asc_setSkin(obj);
|
||||||
|
|
||||||
if ( this.isDarkTheme() ) {
|
if ( !!this.api.asc_setContentDarkMode && this.isDarkTheme() ) {
|
||||||
this.api.asc_setContentDarkMode(this.isContentThemeDark());
|
this.api.asc_setContentDarkMode(this.isContentThemeDark());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -321,6 +321,7 @@ define([
|
||||||
document.body.className = document.body.className.replace(/theme-[\w-]+\s?/gi, '').trim();
|
document.body.className = document.body.className.replace(/theme-[\w-]+\s?/gi, '').trim();
|
||||||
document.body.classList.add(id, 'theme-type-' + themes_map[id].type);
|
document.body.classList.add(id, 'theme-type-' + themes_map[id].type);
|
||||||
|
|
||||||
|
if ( this.api.asc_setContentDarkMode )
|
||||||
if ( themes_map[id].type == 'light' ) {
|
if ( themes_map[id].type == 'light' ) {
|
||||||
this.api.asc_setContentDarkMode(false);
|
this.api.asc_setContentDarkMode(false);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue