1
0
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:
Tim Düsterhus 2012-01-22 20:47:12 +01:00
parent 05138dff87
commit 9a1c8072cd

View File

@ -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.