mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-30 13:09:34 +00:00
compliments,js handles remoteFile without default daytimes defined
This commit is contained in:
parent
62e4e13f5a
commit
cbafaf5d56
@ -9,6 +9,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
### Changed
|
||||
- Add `anytime` group for Compliments module.
|
||||
- Compliments module can use remoteFile without default daytime arrays defined
|
||||
- Installer: Use init config.js from config.js.sample.
|
||||
- Switched out `rrule` package for `rrule-alt` and fixes in `ical.js` in order to fix calendar issues. ([#565](https://github.com/MichMich/MagicMirror/issues/565))
|
||||
- Make mouse events pass through the region fullscreen_above to modules below.
|
||||
|
@ -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]);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user