use isDevelopment

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen committed 2020-07-03 08:18:38 +03:00
1 parent cc964403d6
commit ee69aef562
1 file changed
+2 -2
+2 -2
View File
@@ -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") !== "") {