1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2025-01-09 00:20:08 +00:00

Fix automated notification closing in Google Chrome

This commit is contained in:
Tim Düsterhus 2013-04-20 19:56:21 +02:00
parent 1a1654ae60
commit 810b13d25a

View File

@ -595,11 +595,14 @@ Sends out notifications for the given `message`. The number of unread messages w
if window.Notification? if window.Notification?
if window.Notification.permission is 'granted' if window.Notification.permission is 'granted'
notification = new window.Notification title, do ->
body: content notification = new window.Notification title,
onclick: -> body: content
onclick: ->
notification.close()
setTimeout ->
notification.close() notification.close()
setTimeout notification.close, 5e3 , 5e3
**refreshRoomList()** **refreshRoomList()**
Updates the room list. Updates the room list.