Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/13756/head
Michael Telatynski 2020-05-20 20:01:11 +01:00
parent 6ec613c2c2
commit 706972eff2
1 changed files with 3 additions and 3 deletions

View File

@ -124,14 +124,14 @@ export default class WebPlatform extends VectorBasePlatform {
startUpdater() {
this.pollForUpdate();
setInterval(this.pollForUpdate.bind(this), POKE_RATE_MS);
setInterval(this.pollForUpdate, POKE_RATE_MS);
}
async canSelfUpdate(): Promise<boolean> {
return true;
}
pollForUpdate() {
pollForUpdate = () => {
return this._getVersion().then((ver) => {
if (this.runningVersion === null) {
this.runningVersion = ver;
@ -152,7 +152,7 @@ export default class WebPlatform extends VectorBasePlatform {
detail: err.message || err.status ? err.status.toString() : 'Unknown Error',
};
});
}
};
startUpdateCheck = () => {
if (this.showUpdateCheck) return;