server: windows electron vs node detection fix #2
This commit is contained in:
parent
53497f2cd8
commit
ca627678db
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ function nodeMode() {
|
|||
node = 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) {
|
||||
|
||||
nodeMode()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue