mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 12:33:07 +00:00
Add icon to notification message
This commit is contained in:
parent
d1b3f375c5
commit
7f99342bfb
1 changed files with 2 additions and 1 deletions
|
@ -421,7 +421,8 @@ $(function() {
|
||||||
favico.badge("!");
|
favico.badge("!");
|
||||||
if (Notification.permission === 'granted') {
|
if (Notification.permission === 'granted') {
|
||||||
var n = new Notification( msg.from + ' - ' + btn.data('title'), {
|
var n = new Notification( msg.from + ' - ' + btn.data('title'), {
|
||||||
body: msg.text
|
body: msg.text,
|
||||||
|
icon: '/img/favicon.png'
|
||||||
} );
|
} );
|
||||||
n.onclick = function() {
|
n.onclick = function() {
|
||||||
window.focus();
|
window.focus();
|
||||||
|
|
Loading…
Reference in a new issue