Merge pull request #2881 from SmartMirrorUmbrella/develop

Add possibility to fetch calendars through socket notifications
This commit is contained in:
Michael Teeuw
2022-08-19 12:53:42 +02:00
committed by GitHub
3 changed files with 13 additions and 0 deletions

View File

@@ -134,6 +134,10 @@ Module.register("calendar", {
// Override socket notification handler.
socketNotificationReceived: function (notification, payload) {
if (notification === "FETCH_CALENDAR") {
this.sendSocketNotification(notification, { url: payload.url, id: this.identifier });
}
if (this.identifier !== payload.id) {
return;
}