mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
Fix travis error due to merge before prettier run
This commit is contained in:
parent
4e1dce70a3
commit
94f212a411
@ -10,6 +10,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
|
|||||||
_This release is scheduled to be released on 2020-07-01._
|
_This release is scheduled to be released on 2020-07-01._
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
- Compliments Module - Add Advice API (https://api.adviceslip.com/) Option
|
- Compliments Module - Add Advice API (https://api.adviceslip.com/) Option
|
||||||
|
|
||||||
- Added prettier for an even cleaner codebase
|
- Added prettier for an even cleaner codebase
|
||||||
|
@ -50,10 +50,10 @@ Module.register("compliments", {
|
|||||||
var xobj = new XMLHttpRequest();
|
var xobj = new XMLHttpRequest();
|
||||||
xobj.overrideMimeType("application/json");
|
xobj.overrideMimeType("application/json");
|
||||||
xobj.open("GET", "https://api.adviceslip.com/advice", true);
|
xobj.open("GET", "https://api.adviceslip.com/advice", true);
|
||||||
xobj.onreadystatechange = function() {
|
xobj.onreadystatechange = function () {
|
||||||
if (xobj.readyState === 4 && xobj.status === 200) {
|
if (xobj.readyState === 4 && xobj.status === 200) {
|
||||||
const adviceResp = JSON.parse(xobj.responseText);
|
const adviceResp = JSON.parse(xobj.responseText);
|
||||||
self.config.compliments = adviceResp.slip.advice
|
self.config.compliments = adviceResp.slip.advice;
|
||||||
self.updateDom();
|
self.updateDom();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user