Skip to content

Commit

Permalink
fix environment check
Browse files Browse the repository at this point in the history
  • Loading branch information
kremalicious committed May 14, 2018
1 parent 2acbd45 commit dc574ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gatsby-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit dc574ab

Please sign in to comment.