From 595136f2944dd63019f85ffbc02c6b4add3ceb26 Mon Sep 17 00:00:00 2001 From: Alexandr Promakh Date: Fri, 28 Jun 2019 17:37:12 +0500 Subject: [PATCH] Fix #3 (Blank white screen on startup) --- package.json | 4 ++-- src/renderer/analytics.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 = {