localhost inverts favicon make it obvious at a glance

This commit is contained in:
Miodec 2022-02-02 23:13:33 +01:00
parent 656cbff550
commit 25580b82fd

View file

@ -26,6 +26,11 @@ function updateFavicon(size, curveSize) {
let maincolor, bgcolor;
bgcolor = await ThemeColors.get("bg");
maincolor = await ThemeColors.get("main");
if (window.location.hostname === "localhost") {
let swap = maincolor;
maincolor = bgcolor;
bgcolor = swap;
}
if (bgcolor == maincolor) {
bgcolor = "#111";
maincolor = "#eee";