change version var name

This commit is contained in:
Bui 2018-12-05 21:55:28 +00:00
parent 1806fb338e
commit ac23292fe7
2 changed files with 2 additions and 2 deletions

2
app.py
View File

@ -44,7 +44,7 @@ def get_config():
if not config.get('assets_baseurl'):
config['assets_baseurl'] = ''.join([request.host_url, 'assets']) + '/'
config['_game_version'] = get_version()
config['_version'] = get_version()
return config

View File

@ -84,7 +84,7 @@ class Loader{
assets.views.forEach(name => {
var id = this.getFilename(name)
var qs = gameConfig._game_version ? '?' + gameConfig._game_version.commit_short : '?'
var qs = gameConfig._version ? '?' + gameConfig._version.commit_short : '?'
this.promises.push(this.ajax("src/views/" + name + qs).then(page => {
assets.pages[id] = page
}))