do not overwrite node-integration option

If `node-integration` option pass to window.open, do not overwrite by current window's one
This commit is contained in:
Taichiro Yoshida 2015-07-29 13:41:11 +09:00
parent edde653d60
commit fc92ceb0b6

View file

@ -61,7 +61,7 @@ window.open = (url, frameName='', features='') ->
(options[name] = parseInt(options[name], 10) if options[name]?) for name in ints
# Inherit the node-integration option of current window.
unless options['node-integration']
unless options['node-integration']?
for arg in process.argv when arg.indexOf('--node-integration=') is 0
options['node-integration'] = arg.substr(-4) is 'true'
break