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:
parent
1a1654ae60
commit
810b13d25a
@ -595,11 +595,14 @@ Sends out notifications for the given `message`. The number of unread messages w
|
||||
|
||||
if window.Notification?
|
||||
if window.Notification.permission is 'granted'
|
||||
notification = new window.Notification title,
|
||||
body: content
|
||||
onclick: ->
|
||||
do ->
|
||||
notification = new window.Notification title,
|
||||
body: content
|
||||
onclick: ->
|
||||
notification.close()
|
||||
setTimeout ->
|
||||
notification.close()
|
||||
setTimeout notification.close, 5e3
|
||||
, 5e3
|
||||
|
||||
**refreshRoomList()**
|
||||
Updates the room list.
|
||||
|
Loading…
Reference in New Issue
Block a user