Merge pull request #1394 from RaspAP/fix/theme-select

Fix theme select for material variants
This commit is contained in:
Bill Zimmerman 2023-09-17 07:24:42 -07:00 committed by GitHub
commit 3575d1d185
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -144,6 +144,9 @@ function DisplaySystem(&$extraFooterScripts)
"material-light" => "material-light.php"
];
$selectedTheme = array_search($_COOKIE['theme'], $themeFiles);
if (strpos($_COOKIE['theme'],'material') !== false) {
$selectedTheme = 'material-light';
}
$extraFooterScripts[] = array('src'=>'dist/huebee/huebee.pkgd.min.js', 'defer'=>false);
$extraFooterScripts[] = array('src'=>'app/js/huebee.js', 'defer'=>false);