From 5a612e792ebc3504db107c075a44c7b852f1ac4d Mon Sep 17 00:00:00 2001 From: Paul-Vincent Roll Date: Sun, 3 Apr 2016 20:41:03 +0200 Subject: [PATCH] Fixed mistake that happens when no type is given --- modules/default/alert/alert.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/default/alert/alert.js b/modules/default/alert/alert.js index dec635c1..d517af82 100644 --- a/modules/default/alert/alert.js +++ b/modules/default/alert/alert.js @@ -94,8 +94,8 @@ Module.register('alert',{ }, notificationReceived: function(notification, payload, sender) { - if (typeof payload.type === 'undefined') { payload.type = "alert"; } if (notification === 'SHOW_ALERT') { + if (typeof payload.type === 'undefined') { payload.type = "alert"; } if (payload.type == "alert"){ this.show_alert(payload, sender) }