From 36be656c6271caec841bc1c57b98c6d3c3b1ea73 Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Wed, 15 Apr 2015 09:19:37 +0200 Subject: [PATCH] Disable landing page on pro for now --- app/utils/location.coffee | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/utils/location.coffee b/app/utils/location.coffee index 789b3e37..9b62524b 100644 --- a/app/utils/location.coffee +++ b/app/utils/location.coffee @@ -1,4 +1,5 @@ `import Ember from 'ember'` +`import config from 'travis/config/environment'` Location = Ember.HistoryLocation.extend init: -> @@ -12,11 +13,12 @@ Location = Ember.HistoryLocation.extend getURL: -> url = this._super.apply(this, arguments) - if location.pathname == '/' - if @get('auth.signedIn') - return '/repositories' - else - return '/home' + unless config.pro + if location.pathname == '/' + if @get('auth.signedIn') + return '/repositories' + else + return '/home' url