Skip to content

Commit

Permalink
fix: favicon path prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
worldworm committed Mar 9, 2024
1 parent 0078ba8 commit 9f0fa88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func Register(r *mux.Router) {
r.Handle("/favicon.ico", serveFile("favicon.ico", "image/x-icon"))
for _, size := range []string{"16x16", "32x32", "192x192", "256x256"} {
fileName := fmt.Sprintf("favicon-%s.png", size)
r.Handle(fileName, serveFile(fileName, "image/png"))
r.Handle("/" + fileName, serveFile(fileName, "image/png"))
}
}

Expand Down

0 comments on commit 9f0fa88

Please sign in to comment.