cli: ELECTRON_RUN_AS_NODE headless mode not working without --no-gui option

This commit is contained in:
bordun 2020-11-09 17:41:20 +01:00
parent 28958381f4
commit 42c6e2cce1
3 changed files with 3 additions and 3 deletions

View file

@ -5,6 +5,7 @@
- bug fixes
- missing context menu (copy, paste) in inspector inputs
- osc listeners not resolving "auto" address
- `ELECTRON_RUN_AS_NODE` headless mode not working without `--no-gui` option
- editor
- add console panel under the inspector to ease debugging

View file

@ -32,8 +32,7 @@ function nodeMode() {
})
}
if (process.title === 'node' || process.title === 'node.exe') {
if (process.title === 'node' || process.title === 'node.exe' || process.env.ELECTRON_RUN_AS_NODE) {
nodeMode()

View file

@ -68,7 +68,7 @@ var cli = false
for (let i in argv) {
if (!cliOnly.includes(i)) cli = true
}
if (process.title === 'node' || process.title === 'node.exe') {
if (process.title === 'node' || process.title === 'node.exe' || process.env.ELECTRON_RUN_AS_NODE) {
cli = true
}