diff --git a/package.json b/package.json index 3c3a1fe..ea337ee 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "kube-forwarder", - "version": "1.0.1", - "versionString": "1.0.1", + "version": "1.0.2", + "versionString": "1.0.2", "author": "Pixel Point ", "homepage": "https://kube-forwarder.poxelpoint.io", "description": "A tool for managing port forwarding configs for kubernetes clusters", diff --git a/src/renderer/analytics.js b/src/renderer/analytics.js index c4e847e..1080f25 100644 --- a/src/renderer/analytics.js +++ b/src/renderer/analytics.js @@ -1,7 +1,7 @@ let analytics -if (process.env.NODE_ENV === 'production') { - const Analytics = require('electron-ga') +if (!process.env.IS_WEB) { + const Analytics = require('electron-ga').default analytics = new Analytics(process.env.GA_TRACKING_ID) } else { analytics = {