Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2023-04-28 18:19:32 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2023-04-28 18:19:32 +0300
commitee896662f5c9f6764ea25e961c8b2e733f0def67 (patch)
tree5133eb35f0009cd718fb3429cd10909c0340ff10
parent177bd036a3eeabaf34982bf6ce71f054b8ee3107 (diff)
remove favicon from web root
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
-rw-r--r--web/html/common/head.html3
-rw-r--r--web/web.go8
2 files changed, 2 insertions, 9 deletions
diff --git a/web/html/common/head.html b/web/html/common/head.html
index 168b1993..8a89954d 100644
--- a/web/html/common/head.html
+++ b/web/html/common/head.html
@@ -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;
diff --git a/web/web.go b/web/web.go
index 2b949366..3685b5a5 100644
--- a/web/web.go
+++ b/web/web.go
@@ -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
@@ -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