[themes] debug themes toggle

This commit is contained in:
Maxim Kadushkin 2021-05-19 12:33:03 +03:00
parent 538945fef2
commit a166cf858c

View file

@ -259,7 +259,7 @@ define([
setTheme: function (id, force) { setTheme: function (id, force) {
if ( (this.currentThemeId() != id || force) && !!themes_map[id] ) { if ( (this.currentThemeId() != id || force) && !!themes_map[id] ) {
var classname = document.body.className.replace(/theme-\w+\s?/, ''); var classname = document.body.className.replace(/theme-[\w-]+\s?/, '');
document.body.className = classname; document.body.className = classname;
$('body').addClass(id); $('body').addClass(id);