aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2021-12-27 17:40:57 +0100
committer0neGal <mail@0negal.com>2021-12-27 17:40:57 +0100
commit7bf0b8a2f67009a6347daa587bf39995ac7700da (patch)
tree8f7fdf4eac7049407ee4c378b0cc04ec492e5379 /src/index.js
parent8b30edac91a7db4a0221f1dff63434ad8e873064 (diff)
downloadViper-7bf0b8a2f67009a6347daa587bf39995ac7700da.tar.gz
Viper-7bf0b8a2f67009a6347daa587bf39995ac7700da.zip
added --debug
This means devtools don't get opened no matter what and --debug is required for it to open.
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js4
1 files changed, 3 insertions, 1 deletions
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");