From 75da2b4e1b5821e6dfd6957e6250ce697a6526d5 Mon Sep 17 00:00:00 2001 From: Oleg Korshul Date: Fri, 21 Jul 2023 22:50:08 +0300 Subject: [PATCH] Revert "Fix Bug 61262" This reverts commit dbf2dc350ce57196eaf75b7f071da05c8c6b7f3d. --- 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 bb9f8a8fd1..b7c22aa26a 100644 --- a/apps/common/main/lib/controller/Themes.js +++ b/apps/common/main/lib/controller/Themes.js @@ -310,7 +310,7 @@ define([ const is_theme_type_system = function (id) { return themes_map[id].type == THEME_TYPE_SYSTEM; } const get_system_theme_type = function () { - if ( Common.Controllers.Desktop && (typeof Common.Controllers.Desktop.isActive==='function') && Common.Controllers.Desktop.isActive() ) + if ( Common.Controllers.Desktop && Common.Controllers.Desktop.isActive() ) return Common.Controllers.Desktop.systemThemeType(); return window.matchMedia('(prefers-color-scheme: dark)').matches ? THEME_TYPE_DARK : THEME_TYPE_LIGHT;