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:
parent
edde653d60
commit
fc92ceb0b6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue