relax checking for non-production hosts

This commit is contained in:
Sven Fuchs 2013-02-08 15:22:32 +01:00
parent e61e2e3829
commit 2e8a197933

View File

@ -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