Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2020-05-20 20:01:11 +01:00
parent 6ec613c2c2
commit 706972eff2

View File

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