Skip to content
Permalink
Browse files

always fire route updates in dev mode

  • Loading branch information...
kremalicious committed Mar 30, 2019
1 parent 04b8ba1 commit 7b7f4783a6d77c2f3c30d78dc20f699b791c2756
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gatsby-browser.js
@@ -15,7 +15,7 @@ function getDuration() {
}

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

0 comments on commit 7b7f478

Please sign in to comment.
You can’t perform that action at this time.