mirror of
				https://github.com/MichMich/MagicMirror.git
				synced 2025-10-25 05:14:01 +00:00 
			
		
		
		
	Fixed mistake that happens when no type is given
This commit is contained in:
		| @@ -94,8 +94,8 @@ Module.register('alert',{ | |||||||
| 		 | 		 | ||||||
| 	}, | 	}, | ||||||
| 	notificationReceived: function(notification, payload, sender) { | 	notificationReceived: function(notification, payload, sender) { | ||||||
| 		if (typeof payload.type === 'undefined') { payload.type = "alert"; } |  | ||||||
| 		if (notification === 'SHOW_ALERT') { | 		if (notification === 'SHOW_ALERT') { | ||||||
|  | 			if (typeof payload.type === 'undefined') { payload.type = "alert"; } | ||||||
| 			if (payload.type == "alert"){ | 			if (payload.type == "alert"){ | ||||||
| 				this.show_alert(payload, sender)	 | 				this.show_alert(payload, sender)	 | ||||||
| 			} | 			} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user