Fix pusher auth for pro
This commit is contained in:
parent
cc38f08df4
commit
9a55449789
|
@ -5,7 +5,7 @@ initialize = (data) ->
|
||||||
application = data.application
|
application = data.application
|
||||||
|
|
||||||
if config.pusher.key
|
if config.pusher.key
|
||||||
application.pusher = new TravisPusher(config.pusher)
|
application.pusher = new TravisPusher(config.pusher, data.container.lookup('service:ajax'))
|
||||||
|
|
||||||
application.register 'pusher:main', application.pusher, { instantiate: false }
|
application.register 'pusher:main', application.pusher, { instantiate: false }
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
TravisPusher = (config, ajaxService) ->
|
TravisPusher = (config, ajaxService) ->
|
||||||
@init(config, ajaxService)
|
@init(config, ajaxService)
|
||||||
|
TravisPusher.ajaxService = ajaxService
|
||||||
this
|
this
|
||||||
|
|
||||||
TravisPusher.prototype.active_channels = []
|
TravisPusher.prototype.active_channels = []
|
||||||
|
@ -97,7 +98,6 @@ if ENV.pro
|
||||||
channels.fetching = false
|
channels.fetching = false
|
||||||
callback(data.channels) for callback in channels.callbacks
|
callback(data.channels) for callback in channels.callbacks
|
||||||
|
|
||||||
|
|
||||||
Pusher.getDefaultStrategy = (config) ->
|
Pusher.getDefaultStrategy = (config) ->
|
||||||
[
|
[
|
||||||
[":def", "ws_options", {
|
[":def", "ws_options", {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user