mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
formating fix so that grunt passes
This commit is contained in:
parent
cbafaf5d56
commit
90f60f95f7
@ -6,8 +6,7 @@
|
||||
* By Michael Teeuw http://michaelteeuw.nl
|
||||
* MIT Licensed.
|
||||
*/
|
||||
|
||||
Module.register("compliments",{
|
||||
Module.register("compliments", {
|
||||
|
||||
// Module config defaults.
|
||||
defaults: {
|
||||
@ -97,7 +96,7 @@ Module.register("compliments",{
|
||||
*/
|
||||
complimentArray: function() {
|
||||
var hour = moment().hour();
|
||||
var compliments = null;
|
||||
var compliments = null;
|
||||
|
||||
if (hour >= 3 && hour < 12) {
|
||||
compliments = this.config.compliments.morning;
|
||||
@ -107,9 +106,11 @@ Module.register("compliments",{
|
||||
compliments = this.config.compliments.evening;
|
||||
}
|
||||
|
||||
if (typeof compliments === 'undefined' ) compliments = new Array();
|
||||
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]);
|
||||
}
|
||||
|
||||
@ -126,7 +127,7 @@ Module.register("compliments",{
|
||||
var xobj = new XMLHttpRequest();
|
||||
xobj.overrideMimeType("application/json");
|
||||
xobj.open("GET", this.file(this.config.remoteFile), true);
|
||||
xobj.onreadystatechange = function () {
|
||||
xobj.onreadystatechange = function() {
|
||||
if (xobj.readyState == 4 && xobj.status == "200") {
|
||||
callback(xobj.responseText);
|
||||
}
|
||||
@ -192,4 +193,4 @@ Module.register("compliments",{
|
||||
}
|
||||
},
|
||||
|
||||
});
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user