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:
@@ -9,6 +9,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- Add `anytime` group for Compliments module.
|
- 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.
|
- 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))
|
- 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.
|
- Make mouse events pass through the region fullscreen_above to modules below.
|
||||||
|
@@ -107,6 +107,8 @@ Module.register("compliments",{
|
|||||||
compliments = this.config.compliments.evening;
|
compliments = this.config.compliments.evening;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof compliments === 'undefined' ) compliments = new Array();
|
||||||
|
|
||||||
if ( this.currentWeatherType in this.config.compliments) {
|
if ( this.currentWeatherType in this.config.compliments) {
|
||||||
compliments.push.apply(compliments, this.config.compliments[this.currentWeatherType]);
|
compliments.push.apply(compliments, this.config.compliments[this.currentWeatherType]);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user