mirror of
https://github.com/element-hq/element-web
synced 2024-11-29 12:58:53 +03:00
tidy
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
6ec613c2c2
commit
706972eff2
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue