Don't subscribe to pusher if there's no instance
This commit is contained in:
parent
9601d53ad6
commit
9559d55400
|
@ -19,7 +19,7 @@ Route = TravisRoute.extend
|
||||||
|
|
||||||
activate: ->
|
activate: ->
|
||||||
# subscribe to pusher only if we're at a main route
|
# subscribe to pusher only if we're at a main route
|
||||||
unless config.pro
|
if !config.pro && @pusher
|
||||||
@pusher.subscribeAll(['common'])
|
@pusher.subscribeAll(['common'])
|
||||||
|
|
||||||
`export default Route`
|
`export default Route`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user