Check identifier for type, too

This commit is contained in:
DarthBrento 2020-06-01 13:31:46 +02:00
parent 21f76a8f27
commit 4fe974e7a8

View File

@ -122,7 +122,7 @@ Module.register("calendar", {
// Override socket notification handler. // Override socket notification handler.
socketNotificationReceived: function (notification, payload) { socketNotificationReceived: function (notification, payload) {
if (this.identifier != payload.id) if (this.identifier !== payload.id)
{return;} {return;}
if (notification === "CALENDAR_EVENTS") { if (notification === "CALENDAR_EVENTS") {