Check updates for configured modules only

This commit is contained in:
Chris van Marle
2016-11-18 12:53:49 +01:00
parent 0f44fd2290
commit 482dd4db76
2 changed files with 27 additions and 15 deletions

View File

@@ -1,7 +1,5 @@
Module.register("updatenotification", {
defaults: {
updateInterval: 10 * 60 * 1000, // every 10 minutes
},
@@ -10,12 +8,13 @@ Module.register("updatenotification", {
start: function () {
Log.log("Start updatenotification");
},
notificationReceived: function(notification, payload, sender) {
if (notification === "DOM_OBJECTS_CREATED") {
this.sendSocketNotification("CONFIG", this.config);
this.sendSocketNotification("MODULES", Module.definitions);
this.hide(0,{lockString: self.identifier});
}
},