fix favicon

This commit is contained in:
soraefir
2026-06-08 19:18:39 +02:00
parent 59dd62b9c9
commit 3c3245b450

View File

@@ -26,7 +26,10 @@ let
paletteValue = lib.attrByPath [ value ] (throw "Unknown favicon color reference `${value}`") palette; paletteValue = lib.attrByPath [ value ] (throw "Unknown favicon color reference `${value}`") palette;
in in
if builtins.isString paletteValue then if builtins.isString paletteValue then
"#${paletteValue}" if lib.hasPrefix "#" paletteValue then
paletteValue
else
"#${paletteValue}"
else else
throw "favicon palette reference `${value}` must resolve to a string"; throw "favicon palette reference `${value}` must resolve to a string";
normalizeProfile = profile: normalizeProfile = profile: