fix favicon

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

View File

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