Support for get_app_version
This commit is contained in:
parent
0441fcf3df
commit
8d46077ac2
2 changed files with 12 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue