diff --git a/file/js/be.bastelstu.WCF.Chat.coffee b/file/js/be.bastelstu.WCF.Chat.coffee index 1763472..d4dc64e 100644 --- a/file/js/be.bastelstu.WCF.Chat.coffee +++ b/file/js/be.bastelstu.WCF.Chat.coffee @@ -192,8 +192,9 @@ window.console ?= # Desktop Notifications unless typeof window.webkitNotifications is 'undefined' $('#timsChatNotify').click (event) -> - window.webkitNotifications.requestPermission() if $(@).data 'status' - + if $(@).data 'status' and window.webkitNotifications.checkPermission() isnt 0 + window.webkitNotifications.requestPermission() + ### # Changes the chat-room. #