Skip to content

Commit

Permalink
remove favicon from web root
Browse files Browse the repository at this point in the history
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
  • Loading branch information
MHSanaei and alireza0 committed Apr 28, 2023
1 parent 177bd03 commit ee89666
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
3 changes: 2 additions & 1 deletion web/html/common/head.html
Expand Up @@ -7,7 +7,8 @@
<link rel="stylesheet" href="{{ .base_path }}assets/ant-design-vue@1.7.2/antd.min.css">
<link rel="stylesheet" href="{{ .base_path }}assets/element-ui@2.15.0/theme-chalk/display.css">
<link rel="stylesheet" href="{{ .base_path }}assets/css/custom.css?{{ .cur_ver }}">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel=”icon” type=”image/x-icon” href="{{ .base_path }}assets/favicon.ico">
<link rel="shortcut icon" type="image/x-icon" href="{{ .base_path }}assets/favicon.ico">
<style>
[v-cloak] {
display: none;
Expand Down
8 changes: 0 additions & 8 deletions web/web.go
Expand Up @@ -33,9 +33,6 @@ import (
//go:embed assets/*
var assetsFS embed.FS

//go:embed assets/favicon.ico
var favicon []byte

//go:embed html/*
var htmlFS embed.FS

Expand Down Expand Up @@ -161,11 +158,6 @@ func (s *Server) initRouter() (*gin.Engine, error) {

engine := gin.Default()

// Add favicon
engine.GET("/favicon.ico", func(c *gin.Context) {
c.Data(200, "image/x-icon", favicon)
})

secret, err := s.settingService.GetSecret()
if err != nil {
return nil, err
Expand Down

0 comments on commit ee89666

Please sign in to comment.