diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2023-05-14 03:48:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-13 21:48:56 +0200 |
commit | 3075b996109f413a3f45d502155316be1be17b44 (patch) | |
tree | 2711598748d7c0053e8097222cbc41dfb3941838 /routers/web/web.go | |
parent | 82224c54e0488738dbd3b7eccf56ab08b6790627 (diff) | |
download | gitea-3075b996109f413a3f45d502155316be1be17b44.tar.gz gitea-3075b996109f413a3f45d502155316be1be17b44.zip |
Add icon support for safari (#24697)
Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'routers/web/web.go')
-rw-r--r-- | routers/web/web.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/web/web.go b/routers/web/web.go index 8784b7c5f7..58623b4c67 100644 --- a/routers/web/web.go +++ b/routers/web/web.go @@ -112,6 +112,7 @@ func Routes(ctx gocontext.Context) *web.Route { routes.RouteMethods("/avatars/*", "GET, HEAD", storageHandler(setting.Avatar.Storage, "avatars", storage.Avatars)) routes.RouteMethods("/repo-avatars/*", "GET, HEAD", storageHandler(setting.RepoAvatar.Storage, "repo-avatars", storage.RepoAvatars)) routes.RouteMethods("/apple-touch-icon.png", "GET, HEAD", misc.StaticRedirect("/assets/img/apple-touch-icon.png")) + routes.RouteMethods("/apple-touch-icon-precomposed.png", "GET, HEAD", misc.StaticRedirect("/assets/img/apple-touch-icon.png")) routes.RouteMethods("/favicon.ico", "GET, HEAD", misc.StaticRedirect("/assets/img/favicon.png")) _ = templates.HTMLRenderer() |