From 7bf0b8a2f67009a6347daa587bf39995ac7700da Mon Sep 17 00:00:00 2001 From: 0neGal Date: Mon, 27 Dec 2021 17:40:57 +0100 Subject: added --debug This means devtools don't get opened no matter what and --debug is required for it to open. --- src/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/index.js') diff --git a/src/index.js b/src/index.js index 6924b57..4e64414 100644 --- a/src/index.js +++ b/src/index.js @@ -20,7 +20,9 @@ function start() { nodeIntegration: true, contextIsolation: false, }, - }); win.openDevTools() + }); + + if (cli.hasParam("debug")) {win.openDevTools()} win.removeMenu(); win.loadFile(__dirname + "/app/index.html"); -- cgit v1.2.3