cli: ELECTRON_RUN_AS_NODE headless mode not working without --no-gui option
This commit is contained in:
parent
28958381f4
commit
42c6e2cce1
3 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue