From 2a62bc07edd9a8e2d1d3dfc1a602c3f024998e5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 24 May 2012 20:32:43 +0200 Subject: [PATCH] Fixing trenary operator --- file/js/be.bastelstu.WCF.Chat.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file/js/be.bastelstu.WCF.Chat.coffee b/file/js/be.bastelstu.WCF.Chat.coffee index 014426d..df8562c 100644 --- a/file/js/be.bastelstu.WCF.Chat.coffee +++ b/file/js/be.bastelstu.WCF.Chat.coffee @@ -433,7 +433,7 @@ window.console ?= if window.webkitNotifications.checkPermission() is 0 title = WCF.Language.get 'wcf.chat.newMessages' icon = WCF.Icon.get 'be.bastelstu.wcf.chat.chat' - content = message.username + message.separator + (message.separator is ' ' ? '' : ' ') + message.message + content = message.username + message.separator + (if message.separator is ' ' then '' else ' ') + message.message notification = window.webkitNotifications.createNotification icon, title, content notification.show() setTimeout(() ->