Commit 03577687 authored by Yulian Kuncheff's avatar Yulian Kuncheff

Use serve, remove debug

parent 8037703b
...@@ -12,10 +12,8 @@ const os = require('os'); ...@@ -12,10 +12,8 @@ const os = require('os');
var apiProcess; var apiProcess;
let serve; let serve;
let debug;
const args = process.argv.slice(1); const args = process.argv.slice(1);
serve = args.some(val => val === "--serve"); serve = args.some(val => val === "--serve");
debug = args.some(val => val === "--debug");
if (serve) { if (serve) {
require('electron-reload')(__dirname, { require('electron-reload')(__dirname, {
...@@ -46,7 +44,7 @@ function createWindow() { ...@@ -46,7 +44,7 @@ function createWindow() {
slashes: true slashes: true
})); }));
if (serve || debug) { if (serve) {
mainWindow.webContents.openDevTools(); mainWindow.webContents.openDevTools();
} }
...@@ -127,7 +125,7 @@ function startApi() { ...@@ -127,7 +125,7 @@ function startApi() {
writeLogError(`exec error: ${error}`); writeLogError(`exec error: ${error}`);
return; return;
} }
if (debug) { if (serve) {
writeLog(`stdout: ${stdout}`); writeLog(`stdout: ${stdout}`);
writeLog(`stderr: ${stderr}`); writeLog(`stderr: ${stderr}`);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment