mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 04:45:17 +00:00
Fix travis error due to merge before prettier run
This commit is contained in:
@@ -50,10 +50,10 @@ Module.register("compliments", {
|
||||
var xobj = new XMLHttpRequest();
|
||||
xobj.overrideMimeType("application/json");
|
||||
xobj.open("GET", "https://api.adviceslip.com/advice", true);
|
||||
xobj.onreadystatechange = function() {
|
||||
xobj.onreadystatechange = function () {
|
||||
if (xobj.readyState === 4 && xobj.status === 200) {
|
||||
const adviceResp = JSON.parse(xobj.responseText);
|
||||
self.config.compliments = adviceResp.slip.advice
|
||||
self.config.compliments = adviceResp.slip.advice;
|
||||
self.updateDom();
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user