mirror of
https://github.com/kremalicious/gatsby-plugin-matomo.git
synced 2024-12-22 17:23:23 +01:00
fix environment check
This commit is contained in:
parent
2acbd450cb
commit
dc574ab72c
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user