From 08dbdcfc4f2e0a2bfd4fa016e47b8ec0ee40ad0c Mon Sep 17 00:00:00 2001 From: maxkadushkin Date: Fri, 24 May 2024 14:06:48 +0300 Subject: [PATCH] [DE] debug --- apps/common/main/lib/controller/Themes.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/common/main/lib/controller/Themes.js b/apps/common/main/lib/controller/Themes.js index ebcdf57d44..f580f1fdef 100644 --- a/apps/common/main/lib/controller/Themes.js +++ b/apps/common/main/lib/controller/Themes.js @@ -482,10 +482,11 @@ define([ setContentTheme: function (mode, force) { var set_dark = mode == 'dark'; if ( set_dark != window.uitheme.iscontentdark || force ) { + window.uitheme.iscontentdark = set_dark; + if ( this.isDarkTheme() ) this.api.asc_setContentDarkMode(set_dark); - window.uitheme.iscontentdark = mode; if ( Common.localStorage.getItem('content-theme') != mode ) Common.localStorage.setItem('content-theme', mode);