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

Fixing trenary operator

This commit is contained in:
Tim Düsterhus 2012-05-24 20:32:43 +02:00
parent ba949d3463
commit 2a62bc07ed

View File

@ -433,7 +433,7 @@ window.console ?=
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.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 = window.webkitNotifications.createNotification icon, title, content
notification.show() notification.show()
setTimeout(() -> setTimeout(() ->