forked from rosa/hakurei
cmd/pkgserver: fix dark mode in test web UI
This commit is contained in:
@@ -19,7 +19,7 @@ func serveStaticContent(w http.ResponseWriter, r *http.Request) {
|
|||||||
if len(darkTheme) > 0 && darkTheme[0].Value == "true" {
|
if len(darkTheme) > 0 && darkTheme[0].Value == "true" {
|
||||||
http.ServeFileFS(w, r, content, "ui/static/dark.css")
|
http.ServeFileFS(w, r, content, "ui/static/dark.css")
|
||||||
} else {
|
} else {
|
||||||
http.ServeFileFS(w, r, content, "ui/static/light.css")
|
http.ServeFileFS(w, r, content, "ui/static/dark.css")
|
||||||
}
|
}
|
||||||
case "/favicon.ico":
|
case "/favicon.ico":
|
||||||
http.ServeFileFS(w, r, content, "ui/static/favicon.ico")
|
http.ServeFileFS(w, r, content, "ui/static/favicon.ico")
|
||||||
|
|||||||
Reference in New Issue
Block a user