From 722649c1fdbd440fe9ed24ac3d07e5c0f1daf852 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 19 Apr 2012 19:00:37 +0200 Subject: [PATCH] Avoid duplicate spaces. --- 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 e528bf4..653af84 100644 --- a/file/js/be.bastelstu.WCF.Chat.coffee +++ b/file/js/be.bastelstu.WCF.Chat.coffee @@ -403,7 +403,7 @@ consoleMock ?= 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.message + content = message.username + message.separator + (message.separator is ' ' ? '' : ' ') + message.message notification = window.webkitNotifications.createNotification icon, title, content notification.show() setTimeout(() ->