Permalink
Browse files

fix environment check

  • Loading branch information...
kremalicious committed May 14, 2018
1 parent 2acbd45 commit dc574ab72c4ec01c4fa995ae9aa9a1469f04387a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gatsby-browser.js
@@ -15,7 +15,7 @@ function getDuration() {
}

exports.onRouteUpdate = ({ location }) => {
if (process.env.NODE_ENV !== 'production' && typeof _paq !== 'undefined') {
if (process.env.NODE_ENV === 'production' && typeof _paq !== 'undefined') {
window._paq = window._paq || []
window.dev = window.dev || null

0 comments on commit dc574ab

Please sign in to comment.