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?
|
||||||
if window.Notification.permission is 'granted'
|
if window.Notification.permission is 'granted'
|
||||||
|
do ->
|
||||||
notification = new window.Notification title,
|
notification = new window.Notification title,
|
||||||
body: content
|
body: content
|
||||||
onclick: ->
|
onclick: ->
|
||||||
notification.close()
|
notification.close()
|
||||||
setTimeout notification.close, 5e3
|
setTimeout ->
|
||||||
|
notification.close()
|
||||||
|
, 5e3
|
||||||
|
|
||||||
**refreshRoomList()**
|
**refreshRoomList()**
|
||||||
Updates the room list.
|
Updates the room list.
|
||||||
|
Loading…
Reference in New Issue
Block a user