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:
parent
ba949d3463
commit
2a62bc07ed
@ -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(() ->
|
||||||
|
Loading…
Reference in New Issue
Block a user