Disable landing page on pro for now

This commit is contained in:
Piotr Sarnacki 2015-04-15 09:19:37 +02:00
parent 203fbcea8a
commit 36be656c62

View File

@ -1,4 +1,5 @@
`import Ember from 'ember'` `import Ember from 'ember'`
`import config from 'travis/config/environment'`
Location = Ember.HistoryLocation.extend Location = Ember.HistoryLocation.extend
init: -> init: ->
@ -12,6 +13,7 @@ Location = Ember.HistoryLocation.extend
getURL: -> getURL: ->
url = this._super.apply(this, arguments) url = this._super.apply(this, arguments)
unless config.pro
if location.pathname == '/' if location.pathname == '/'
if @get('auth.signedIn') if @get('auth.signedIn')
return '/repositories' return '/repositories'