Linux updater: better message

This commit is contained in:
DC
2016-03-28 16:19:30 -07:00
parent 9030f23278
commit 0eab6a9783
3 changed files with 11 additions and 17 deletions

View File

@@ -45,8 +45,6 @@ function checkForUpdates () {
if (res.statusCode !== 200) return
var obj = JSON.parse(data)
// TODO: version should be included in the response object, we shouldn'v have to parse obj.name
var version = obj.name.slice(obj.name.lastIndexOf('v') + 1)
windows.main.send('dispatch', 'updateAvailable', version)
windows.main.send('dispatch', 'updateAvailable', obj.version)
})
}