Skip to content

🎧 Your Personal Streaming Service

Add a `v` prefix to the version in the description

Deluanddb30ceb112d
diff --git a/server/app/serve_index.go b/server/app/serve_index.go
index 71c1e6811..d66359dac 100644
--- a/server/app/serve_index.go
+++ b/server/app/serve_index.go
@@ -43,9 +43,13 @@ func ServeIndex(ds model.DataStore, fs http.FileSystem) http.HandlerFunc {
}
log.Debug("UI configuration", "appConfig", appConfig)
+ version := consts.Version()
+ if version != "dev" {
+ version = "v" + version
+ }
data := map[string]interface{}{
"AppConfig": string(j),
- "Version": consts.Version(),
+ "Version": version,
}
err = t.Execute(w, data)
if err != nil {