From a166cf858c35c177f9fa7d70194e5dc710c9f1bf Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Wed, 19 May 2021 12:33:03 +0300 Subject: [PATCH] [themes] debug themes toggle --- 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 1c11545a3..9d72414a0 100644 --- a/apps/common/main/lib/controller/Themes.js +++ b/apps/common/main/lib/controller/Themes.js @@ -259,7 +259,7 @@ define([ setTheme: function (id, force) { 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; $('body').addClass(id);