Only apply darkmode preference on top level window for initiation because the rest is supposed to get set from client-side state

This commit is contained in:
Hadi Nategh 2021-01-28 18:03:27 +01:00
parent 5e73271df4
commit e98a8b372e

View File

@ -534,7 +534,7 @@ abstract class Framework extends Framework\Extra
'dir_code' => lang('language_direction_rtl') != 'rtl' ? '' : ' dir="rtl"',
'include_wz_tooltip'=> $include_wz_tooltip,
'webserver_url' => $GLOBALS['egw_info']['server']['webserver_url'],
'darkmode' => $GLOBALS['egw_info']['user']['preferences']['common']['darkmode']
'darkmode' => $this->isTop()? $GLOBALS['egw_info']['user']['preferences']['common']['darkmode'] : ''
);
}