chore: replace `$version` of cdn with `webVersion`

pull/1628/head
Noah Hsu 2022-09-07 18:39:04 +08:00
parent 71d30b6819
commit 4ea19ae078
1 changed files with 1 additions and 0 deletions

View File

@ -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)