From 76672e76ca1a01ba93881679bce0f845a3406942 Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Fri, 6 Feb 2015 15:04:59 +0100 Subject: [PATCH] Fix pusher auth on pro --- app/utils/pusher.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/utils/pusher.coffee b/app/utils/pusher.coffee index 1b741b9e..05c97e5b 100644 --- a/app/utils/pusher.coffee +++ b/app/utils/pusher.coffee @@ -1,4 +1,5 @@ `import ENV from 'travis/config/environment'` +`import Ajax from 'travis/utils/ajax'` TravisPusher = (config) -> @init(config) @@ -117,7 +118,7 @@ if ENV.pro unless channels.fetching channels.fetching = true - Travis.ajax.post Pusher.channel_auth_endpoint, { socket_id: socketId, channels: names }, (data) -> + Ajax.post Pusher.channel_auth_endpoint, { socket_id: socketId, channels: names }, (data) -> channels.fetching = false callback(data.channels) for callback in channels.callbacks