From 1d989777a71dfeefad03c820e740b91068f8ff04 Mon Sep 17 00:00:00 2001 From: maxkadushkin Date: Fri, 23 Apr 2021 00:25:31 +0300 Subject: [PATCH] [themes] fix bug 49875 --- apps/common/main/lib/controller/Themes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/common/main/lib/controller/Themes.js b/apps/common/main/lib/controller/Themes.js index 76376420a..eb08f5e3a 100644 --- a/apps/common/main/lib/controller/Themes.js +++ b/apps/common/main/lib/controller/Themes.js @@ -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);