mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-06 21:48:08 +08:00
localhost inverts favicon make it obvious at a glance
This commit is contained in:
parent
656cbff550
commit
25580b82fd
1 changed files with 5 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Reference in a new issue