Update src/client/theme-default/index.ts

pull/87/head
Eduardo San Martin Morote 5 years ago committed by GitHub
parent bcac6039ef
commit 066e3d2516
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -15,7 +15,7 @@ const theme: Theme = {
const { googleAnalytics: GA_ID } = siteData.value.themeConfig const { googleAnalytics: GA_ID } = siteData.value.themeConfig
if ( if (
GA_ID && GA_ID &&
process.env.NODE_ENV !== 'production' && process.env.NODE_ENV === 'production' &&
typeof window !== 'undefined' typeof window !== 'undefined'
) { ) {
installGoogleAnalytics(GA_ID, router) installGoogleAnalytics(GA_ID, router)

Loading…
Cancel
Save