Skip to content

Commit a3c6037

Browse files
committed
revert to app version parameter
1 parent 36c7797 commit a3c6037

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

modules/setting/setting.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
package setting
77

88
import (
9-
"crypto/sha256"
10-
"encoding/hex"
119
"encoding/base64"
1210
"fmt"
1311
"math"
@@ -763,8 +761,7 @@ func loadFromConf(allowEmpty bool, extraConfig string) {
763761
}
764762

765763
AbsoluteAssetURL = MakeAbsoluteAssetURL(AppURL, StaticURLPrefix)
766-
versionHash := sha256.Sum256([]byte(AppVer))
767-
AssetVersion = hex.EncodeToString(versionHash[:])[0:8]
764+
AssetVersion = url.QueryEscape(AppVer)
768765

769766
manifestBytes := MakeManifestData(AppName, AppURL, AbsoluteAssetURL)
770767
ManifestData = `application/json;base64,` + base64.StdEncoding.EncodeToString(manifestBytes)

0 commit comments

Comments
 (0)