mirror of
https://github.com/kremalicious/gatsby-plugin-matomo.git
synced 2024-12-22 09:13:19 +01:00
always fire route updates in dev mode
This commit is contained in:
parent
04b8ba1903
commit
7b7f4783a6
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user