Use travis location
This commit is contained in:
parent
55cf221b56
commit
4f38faf3c2
11
app/initializers/location.coffee
Normal file
11
app/initializers/location.coffee
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
`import TravisLocation from 'travis/utils/location'`
|
||||||
|
|
||||||
|
initialize = (container, application) ->
|
||||||
|
application.register 'location:travis', TravisLocation
|
||||||
|
|
||||||
|
Initializer =
|
||||||
|
name: 'location'
|
||||||
|
initialize: initialize
|
||||||
|
|
||||||
|
`export { initialize }`
|
||||||
|
`export default Initializer`
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
Router = Ember.Router.extend
|
Router = Ember.Router.extend
|
||||||
# TODO: we should use TravisLocation here
|
# TODO: we should use TravisLocation here
|
||||||
location: if Ember.testing then 'none' else 'history'
|
location: if Ember.testing then 'none' else 'travis'
|
||||||
|
|
||||||
handleURL: (url) ->
|
handleURL: (url) ->
|
||||||
url = url.replace(/#.*?$/, '')
|
url = url.replace(/#.*?$/, '')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user