Fix to correctly test for dark palette

This commit is contained in:
iliajie
2023-06-20 23:33:27 +03:00
parent 0f898b161b
commit 629ca21a3a

View File

@ -56,7 +56,8 @@ if ($opts->{'type'} eq "advanced") {
my @highlight_bundle = @{$highlight_bundle};
if ($opts->{'_'}->{'client'}->{'palette'} eq 'dark') {
foreach (@highlight_bundle) {
$_ .= "-dark";
$_ .= "-dark"
if (-e "$root_directory/unauthenticated/css/$_-dark.min.css");
}
}
&$load_css_modules(\@highlight_bundle);