Add ELECTRON_NO_ATTACH_CONSOLE in BufferedNodeProcess

This commit is contained in:
Michelle Tilley
2016-04-14 14:39:59 -07:00
parent e6e385c95b
commit 5f0ad9e015

View File

@@ -47,6 +47,7 @@ class BufferedNodeProcess extends BufferedProcess
options ?= {}
options.env ?= Object.create(process.env)
options.env['ELECTRON_RUN_AS_NODE'] = 1
options.env['ELECTRON_NO_ATTACH_CONSOLE'] = 1
args = args?.slice() ? []
args.unshift(command)