fix Travis.Pusher.prefix

This commit is contained in:
Sven Fuchs 2013-10-29 14:12:51 +01:00
parent e9552a5f60
commit 6ab834f516

View File

@ -40,7 +40,10 @@ $.extend Travis.Pusher.prototype,
@pusher.unsubscribe(channel) if @pusher?.channel(channel)
prefix: (channel) ->
"#{Travis.Pusher.CHANNEL_PREFIX}#{channel}" if channel && channel.indexOf(Travis.Pusher.CHANNEL_PREFIX) != 0
if channel.indexOf(Travis.Pusher.CHANNEL_PREFIX) != 0
"#{Travis.Pusher.CHANNEL_PREFIX}#{channel}"
else
channel
# process pusher messages in batches every 5 minutes when the page is hidden
processingIntervalWhenHidden: 1000 * 60 * 5