Commit ac23292f authored by Bui's avatar Bui

change version var name

parent 1806fb33
......@@ -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
......
......@@ -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
}))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment