[themes] fix bug 49875

This commit is contained in:
maxkadushkin 2021-04-23 00:25:31 +03:00 committed by GitHub
parent 3efb5d6d70
commit 1d989777a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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