Add app initializers which sets window.Travis
We still use Travis in some places in the app and Travis var is not set when using ember build. The initializer added in this commit sets it to the current app instance
This commit is contained in:
parent
41d406bb19
commit
0dba0fdad5
10
app/initializers/app.coffee
Normal file
10
app/initializers/app.coffee
Normal file
|
@ -0,0 +1,10 @@
|
|||
initialize = (container, app) ->
|
||||
if typeof window != 'undefined'
|
||||
window.Travis = app
|
||||
|
||||
Initializer =
|
||||
name: 'app'
|
||||
initialize: initialize
|
||||
|
||||
`export {initialize}`
|
||||
`export default Initializer`
|
Loading…
Reference in New Issue
Block a user