allow updating frontend version without downloading new version of the
app
This commit is contained in:
parent
4bd9e4896d
commit
44a1154909
3 changed files with 6 additions and 2 deletions
|
@ -47,9 +47,7 @@ collage.cyberia.club {
|
|||
|
||||
- "This invite code is invalid"
|
||||
- need rotate button
|
||||
- fix text posts
|
||||
|
||||
- deployment: check
|
||||
- images only load once they are on-screen
|
||||
- save user's view position in localStorage or something
|
||||
- rotate posts (capsule colliders)
|
||||
|
|
1
VERSION
Normal file
1
VERSION
Normal file
|
@ -0,0 +1 @@
|
|||
0.1.20
|
5
main.go
5
main.go
|
@ -262,6 +262,11 @@ func setupRoutes(mux *http.ServeMux) {
|
|||
setCookie(response, "graffiti_invite_code", inviteCode, 60*60*24)
|
||||
}
|
||||
|
||||
versionBytes, err := ioutil.ReadFile("VERSION")
|
||||
if err == nil {
|
||||
appVersion = string(versionBytes)
|
||||
}
|
||||
|
||||
stateJSONBytes, err := json.MarshalIndent(
|
||||
FrontendState{
|
||||
Version: appVersion,
|
||||
|
|
Loading…
Reference in a new issue