From e98a8b372e164641c42b0abc298d596e59496e11 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 28 Jan 2021 18:03:27 +0100 Subject: [PATCH] Only apply darkmode preference on top level window for initiation because the rest is supposed to get set from client-side state --- api/src/Framework.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Framework.php b/api/src/Framework.php index af109b7a3f..db29a6a32d 100644 --- a/api/src/Framework.php +++ b/api/src/Framework.php @@ -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'] : '' ); }