From 9a1c8072cdab8633448da2d761b4beab25f0aad6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 22 Jan 2012 20:47:12 +0100 Subject: [PATCH] Ask for permission only if status is active --- file/js/TimWolla.WCF.Chat.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file/js/TimWolla.WCF.Chat.coffee b/file/js/TimWolla.WCF.Chat.coffee index b8257bf..602e13e 100644 --- a/file/js/TimWolla.WCF.Chat.coffee +++ b/file/js/TimWolla.WCF.Chat.coffee @@ -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.