1
0
mirror of https://github.com/kremalicious/gatsby-plugin-matomo.git synced 2024-12-22 09:13:19 +01:00

fix environment check

This commit is contained in:
Matthias Kretschmann 2018-05-14 22:15:53 +02:00
parent 2acbd450cb
commit dc574ab72c
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -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