mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-25 20:08:52 +08:00
[all] fix bug 61071
This commit is contained in:
@ -91,7 +91,7 @@ if ( !!params.uitheme && checkLocalStorage && !localStorage.getItem("ui-theme-id
|
||||
var ui_theme_name = checkLocalStorage && localStorage.getItem("ui-theme-id") ? localStorage.getItem("ui-theme-id") : params.uitheme;
|
||||
var ui_theme_type;
|
||||
if ( !ui_theme_name ) {
|
||||
if ( (desktop && desktop.theme && desktop.theme.system == 'dark') ||
|
||||
if ( (window.desktop && desktop.theme && desktop.theme.system == 'dark') ||
|
||||
(window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) )
|
||||
{
|
||||
ui_theme_name = 'theme-dark';
|
||||
|
||||
Reference in New Issue
Block a user