From ee69aef562e457b395ba55de288028911ecbc8be Mon Sep 17 00:00:00 2001 From: Jari Kolehmainen Date: Fri, 3 Jul 2020 08:18:38 +0300 Subject: [PATCH] use isDevelopment Signed-off-by: Jari Kolehmainen --- src/main/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/index.ts b/src/main/index.ts index 1fff16458d..fec7f3e553 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -2,7 +2,8 @@ import "../common/system-ca" import { app, dialog, protocol } from "electron" -if (process.env.NODE_ENV === "development") { +import { isMac, vueAppName, isDevelopment } from "../common/vars"; +if (isDevelopment) { const appName = 'LensDev'; app.setName(appName); const appData = app.getPath('appData'); @@ -25,7 +26,6 @@ import { getFreePort } from "./port" import { mangleProxyEnv } from "./proxy-env" import { findMainWebContents } from "./webcontents" import { registerStaticProtocol } from "../common/register-static"; -import { isMac, vueAppName } from "../common/vars"; mangleProxyEnv() if (app.commandLine.getSwitchValue("proxy-server") !== "") {