More work on dark mode clean up. Wrapping up for the week. Happy almost birthday me.
This commit is contained in:
@@ -386,13 +386,13 @@ if ($ae_loc?.site_cfg_json?.theme_name) {
|
||||
if ($ae_loc?.site_cfg_json?.theme_mode) {
|
||||
$ae_loc.theme_mode = $ae_loc.site_cfg_json.theme_mode;
|
||||
|
||||
if (browser && window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
||||
$ae_loc.theme_mode = 'dark';
|
||||
} else {
|
||||
$ae_loc.theme_mode = 'light';
|
||||
}
|
||||
// $ae_loc.theme_mode = 'dark';
|
||||
}
|
||||
|
||||
if (browser && window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
||||
$ae_loc.theme_mode = 'dark';
|
||||
} else {
|
||||
$ae_loc.theme_mode = 'light';
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user