From 2e8a197933bf69c9e35ca88572b92726ade6400e Mon Sep 17 00:00:00 2001 From: Sven Fuchs Date: Fri, 8 Feb 2013 15:22:32 +0100 Subject: [PATCH] relax checking for non-production hosts --- assets/scripts/app/routes.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/scripts/app/routes.coffee b/assets/scripts/app/routes.coffee index 04fcd573..25bc7384 100644 --- a/assets/scripts/app/routes.coffee +++ b/assets/scripts/app/routes.coffee @@ -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