mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +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._
|
||||
|
||||
### Added
|
||||
|
||||
- Compliments Module - Add Advice API (https://api.adviceslip.com/) Option
|
||||
|
||||
- Added prettier for an even cleaner codebase
|
||||
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user