Error in MagicMirror/modules/default/currentWeather/currentWeather.js line 296, 300

Notice that self.config.animationSpeed can not be found because the notificationReceived function does not have "self" variable.
This commit is contained in:
wonjerry
2018-04-06 21:25:10 +09:00
parent d21d9f0141
commit b73c549131
2 changed files with 8 additions and 2 deletions

View File

@@ -293,11 +293,11 @@ Module.register("currentweather",{
}
if (notification === "INDOOR_TEMPERATURE") {
this.indoorTemperature = this.roundValue(payload);
this.updateDom(self.config.animationSpeed);
this.updateDom(this.config.animationSpeed);
}
if (notification === "INDOOR_HUMIDITY") {
this.indoorHumidity = this.roundValue(payload);
this.updateDom(self.config.animationSpeed);
this.updateDom(this.config.animationSpeed);
}
},