Support for get_app_version

This commit is contained in:
David Baker 2016-11-08 10:47:01 +00:00
parent 0441fcf3df
commit 8d46077ac2
2 changed files with 12 additions and 0 deletions

View file

@ -144,6 +144,13 @@ export default class WebPlatform extends VectorBasePlatform {
return deferred.promise;
}
getAppVersion() {
if (this.runningVersion !== null) {
return q(this.runningVersion);
}
return this._getVersion();
}
pollForUpdate() {
this._getVersion().done((ver) => {
if (this.runningVersion == null) {