From 4ea19ae07839c1ee696d34c66f47243b15c46051 Mon Sep 17 00:00:00 2001 From: Noah Hsu Date: Wed, 7 Sep 2022 18:39:04 +0800 Subject: [PATCH] chore: replace `$version` of cdn with `webVersion` --- server/static/static.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/static/static.go b/server/static/static.go index cbe3b12e..e3b2873d 100644 --- a/server/static/static.go +++ b/server/static/static.go @@ -26,6 +26,7 @@ func InitIndex() { func UpdateIndex() { cdn := strings.TrimSuffix(conf.Conf.Cdn, "/") + cdn = strings.ReplaceAll(cdn, "$version", conf.WebVersion) basePath := setting.GetStr(conf.BasePath) apiUrl := setting.GetStr(conf.ApiUrl) favicon := setting.GetStr(conf.Favicon)