Merge pull request #140 from yuvipanda/notification-img

Add icon to notification message
This commit is contained in:
Mattias Erming 2014-09-14 02:08:05 +02:00
commit c38067edfe
1 changed files with 2 additions and 1 deletions

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