mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-22 21:40:08 +00:00
Ask for permission only if status is active
This commit is contained in:
parent
05138dff87
commit
9a1c8072cd
@ -76,7 +76,7 @@ TimWolla.WCF ?= {}
|
||||
element.attr 'title', element.data 'disableMessage'
|
||||
if typeof window.webkitNotifications isnt 'undefined'
|
||||
$('#chatNotify').click (event) ->
|
||||
window.webkitNotifications.requestPermission()
|
||||
window.webkitNotifications.requestPermission() if $(this).data 'status'
|
||||
|
||||
###
|
||||
# Changes the chat-room.
|
||||
|
Loading…
Reference in New Issue
Block a user