Fix the vector web version in UserSettings

Add a getAppVersion() function to the platform rather than relying
on the updater code firing an event before we know what the app
version is.
This commit is contained in:
David Baker 2016-11-08 10:45:19 +00:00
parent 884ae0e218
commit d44adcb7a9
3 changed files with 21 additions and 2 deletions

View file

@ -65,4 +65,12 @@ export default class BasePlatform {
displayNotification(title: string, msg: string, avatarUrl: string) {
}
/**
* Returns a promise that resolves to a string representing
* the current version of the application.
*/
getAppVersion() {
return q();
}
}