relax checking for non-production hosts
This commit is contained in:
parent
e61e2e3829
commit
2e8a197933
|
@ -3,7 +3,7 @@ require 'travis/location'
|
|||
Ember.Route.reopen
|
||||
enter: (router) ->
|
||||
@_super(router)
|
||||
if @get('isLeafRoute') && !window.location.host.match(/^staging\.|^localhost/)
|
||||
if @get('isLeafRoute') && !window.location.host.match(/staging|localhost/)
|
||||
_gaq.push(['_trackPageview', @absoluteRoute(router)])
|
||||
|
||||
defaultRoute = Ember.Route.extend
|
||||
|
|
Loading…
Reference in New Issue
Block a user