Show remote compliments at boot instead of after one updateInterval

This commit is contained in:
henrysun18
2018-01-31 23:04:35 -05:00
parent 3b40f393d8
commit 6802d152da
2 changed files with 3 additions and 1 deletions

View File

@@ -49,14 +49,15 @@ Module.register("compliments", {
this.lastComplimentIndex = -1;
var self = this;
if (this.config.remoteFile != null) {
this.complimentFile((response) => {
this.config.compliments = JSON.parse(response);
self.updateDom();
});
}
// Schedule update timer.
var self = this;
setInterval(function() {
self.updateDom(self.config.fadeSpeed);
}, this.config.updateInterval);