diff --git a/MMM-JsonTable.js b/MMM-JsonTable.js index a5063b0..9f9a577 100644 --- a/MMM-JsonTable.js +++ b/MMM-JsonTable.js @@ -31,7 +31,10 @@ Module.register("MMM-JsonTable", { // Request node_helper to get json from url getJson () { - this.sendSocketNotification("MMM-JsonTable_GET_JSON", {url:this.config.url,id:this.identifier}); + this.sendSocketNotification("MMM-JsonTable_GET_JSON", { + url: this.config.url, + id: this.identifier + }); }, socketNotificationReceived (notification, payload) { diff --git a/node_helper.js b/node_helper.js index 904a794..911a1de 100644 --- a/node_helper.js +++ b/node_helper.js @@ -14,14 +14,14 @@ module.exports = NodeHelper.create({ .then((json) => { // Send the json data back with the url to distinguish it on the receiving part self.sendSocketNotification("MMM-JsonTable_JSON_RESULT", { - id:payload.id, + id: payload.id, data: json }); }); }, // Subclass socketNotificationReceived received. - socketNotificationReceived (notification, payload ) { + socketNotificationReceived (notification, payload) { if (notification === "MMM-JsonTable_GET_JSON") { this.getJson(payload); }