Revert "Fix Bug 61262"

This reverts commit dbf2dc350c.
This commit is contained in:
Oleg Korshul
2023-07-21 22:50:08 +03:00
parent 0172d26dda
commit 75da2b4e1b

View File

@ -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;