mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 12:55:22 +00:00
compliments,js handles remoteFile without default daytimes defined
This commit is contained in:
@@ -107,6 +107,8 @@ Module.register("compliments",{
|
||||
compliments = this.config.compliments.evening;
|
||||
}
|
||||
|
||||
if (typeof compliments === 'undefined' ) compliments = new Array();
|
||||
|
||||
if ( this.currentWeatherType in this.config.compliments) {
|
||||
compliments.push.apply(compliments, this.config.compliments[this.currentWeatherType]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user