Remote force check update (#3127)

updatenotification: 

allow force scanning with `SCAN_UPDATES` notification from other modules
This commit is contained in:
Bugsounet - Cédric
2023-06-18 14:33:03 +02:00
committed by GitHub
parent e985e99036
commit c1850f2577
3 changed files with 28 additions and 12 deletions

View File

@@ -34,9 +34,14 @@ Module.register("updatenotification", {
},
notificationReceived(notification) {
if (notification === "DOM_OBJECTS_CREATED") {
this.sendSocketNotification("CONFIG", this.config);
this.sendSocketNotification("MODULES", Object.keys(Module.definitions));
switch (notification) {
case "DOM_OBJECTS_CREATED":
this.sendSocketNotification("CONFIG", this.config);
this.sendSocketNotification("MODULES", Object.keys(Module.definitions));
break;
case "SCAN_UPDATES":
this.sendSocketNotification("SCAN_UPDATES");
break;
}
},