aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2024-01-24 17:09:48 +0100
committer0neGal <mail@0negal.com>2024-01-24 17:09:48 +0100
commite2af466a731badf6939dcaffb19672299e356fc8 (patch)
tree45f470fba86261cdfaa58005367826e79bffefe0
parentefe7e75e6f7edaa27caadd4074b3a0c4fa61e7f1 (diff)
downloadViper-e2af466a731badf6939dcaffb19672299e356fc8.tar.gz
Viper-e2af466a731badf6939dcaffb19672299e356fc8.zip
fixed devtools mysteriously never opening
-rw-r--r--src/index.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js
index 917b8bd..74fe669 100644
--- a/src/index.js
+++ b/src/index.js
@@ -53,7 +53,15 @@ function start() {
});
// when --devtools is added it'll open the dev tools
- if (cli.hasParam("devtools")) {win.openDevTools()}
+ if (cli.hasParam("devtools")) {
+ // for some unknown, mysterious reason, the devtools just wont
+ // open if you call this immediately, that's how its worked for
+ // a very long time, and suddenly it stopped working, and this
+ // seemingly was the only fix
+ setTimeout(() => {
+ win.openDevTools();
+ }, 1)
+ }
// general setup
win.removeMenu();