From 706972eff2cbf8187f6cd2e61412ffc1e82f5851 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 20 May 2020 20:01:11 +0100 Subject: [PATCH] tidy Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/vector/platform/WebPlatform.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vector/platform/WebPlatform.ts b/src/vector/platform/WebPlatform.ts index 8c924e49..d43fe12f 100644 --- a/src/vector/platform/WebPlatform.ts +++ b/src/vector/platform/WebPlatform.ts @@ -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 { 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;