This commit is contained in:
Paulus Schoutsen 2017-05-11 21:57:29 -07:00
parent a4f7caef81
commit 7fc56bb62a
3 changed files with 3 additions and 3 deletions

View File

@ -109,7 +109,7 @@ Polymer({
}, },
computeRebootAvailable: function (data) { computeRebootAvailable: function (data) {
return data.features && data.features.indexOf("reboot") !== -1; return data.features && data.features.indexOf('reboot') !== -1;
}, },
}); });
</script> </script>

View File

@ -140,7 +140,7 @@ Polymer({
this.$.data.refresh().catch(function () { this.$.data.refresh().catch(function () {
tries += 1; tries += 1;
setTimeout(tryUpdate, Math.min(tries, 5) * 1000); setTimeout(tryUpdate, Math.min(tries, 5) * 1000);
}) });
}.bind(this); }.bind(this);
tryUpdate(); tryUpdate();

View File

@ -33,7 +33,7 @@ Polymer({
this.fetchSupervisorInfo(), this.fetchSupervisorInfo(),
this.fetchHostInfo(), this.fetchHostInfo(),
this.fetchHassInfo(), this.fetchHassInfo(),
]) ]);
}, },
fetchSupervisorInfo: function () { fetchSupervisorInfo: function () {