From 9559d55400bb67940284e693aff44196b88dae25 Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Mon, 16 Feb 2015 14:15:36 +0100 Subject: [PATCH] Don't subscribe to pusher if there's no instance --- app/routes/main.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes/main.coffee b/app/routes/main.coffee index 923166dd..44376f91 100644 --- a/app/routes/main.coffee +++ b/app/routes/main.coffee @@ -19,7 +19,7 @@ Route = TravisRoute.extend activate: -> # subscribe to pusher only if we're at a main route - unless config.pro + if !config.pro && @pusher @pusher.subscribeAll(['common']) `export default Route`