1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00

Avoid duplicate spaces.

This commit is contained in:
Tim Düsterhus 2012-04-19 19:00:37 +02:00
parent 5ad0bca7e9
commit 722649c1fd

View File

@ -403,7 +403,7 @@ consoleMock ?=
if window.webkitNotifications.checkPermission() is 0 if window.webkitNotifications.checkPermission() is 0
title = WCF.Language.get 'wcf.chat.newMessages' title = WCF.Language.get 'wcf.chat.newMessages'
icon = WCF.Icon.get 'be.bastelstu.wcf.chat.chat' 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 = window.webkitNotifications.createNotification icon, title, content
notification.show() notification.show()
setTimeout(() -> setTimeout(() ->