Add icon to notification message

This commit is contained in:
YuviPanda 2014-09-14 00:16:02 +01:00
parent d1b3f375c5
commit 7f99342bfb

View file

@ -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();