Skip to content

Commit

Permalink
Merge pull request #162 from worldworm/fix-favicon
Browse files Browse the repository at this point in the history
fix: favicon path prefix
  • Loading branch information
jmattheis committed Mar 9, 2024
2 parents 0078ba8 + 9f0fa88 commit 8c7c568
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 8c7c568

Please sign in to comment.