From 515c183070251cee07c466d28452d1a2ecc49bfb Mon Sep 17 00:00:00 2001 From: rejas Date: Wed, 5 Jun 2019 17:01:54 +0200 Subject: [PATCH] Fix a comparison that was an assignement --- modules/default/alert/alert.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/default/alert/alert.js b/modules/default/alert/alert.js index b787ba57..d316b3ea 100644 --- a/modules/default/alert/alert.js +++ b/modules/default/alert/alert.js @@ -132,7 +132,7 @@ Module.register("alert",{ if (typeof payload.type === "undefined") { payload.type = "alert"; } if (payload.type === "alert") { this.show_alert(payload, sender); - } else if (payload.type = "notification") { + } else if (payload.type === "notification") { this.show_notification(payload); } } else if (notification === "HIDE_ALERT") { @@ -152,5 +152,4 @@ Module.register("alert",{ } Log.info("Starting module: " + this.name); } - });