From 7f99342bfb6f9e6eb1e9a78de955717a5d6c4fed Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Sun, 14 Sep 2014 00:16:02 +0100 Subject: [PATCH] Add icon to notification message --- client/js/shout.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/js/shout.js b/client/js/shout.js index a94a9658..cc62bfc4 100644 --- a/client/js/shout.js +++ b/client/js/shout.js @@ -421,7 +421,8 @@ $(function() { favico.badge("!"); if (Notification.permission === 'granted') { var n = new Notification( msg.from + ' - ' + btn.data('title'), { - body: msg.text + body: msg.text, + icon: '/img/favicon.png' } ); n.onclick = function() { window.focus();