server: node vs electron mode distinction not working on windows
This commit is contained in:
parent
c90fec4285
commit
fbab1d13c5
1 changed files with 1 additions and 1 deletions
|
|
@ -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' || process.env.ELECTRON_RUN_AS_NODE) {
|
||||
if (!process.versions.electron || process.env.ELECTRON_RUN_AS_NODE) {
|
||||
cli = true
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue