From fc92ceb0b6cc7a56e8a3d3ff40fcad56ba4a81e0 Mon Sep 17 00:00:00 2001 From: Taichiro Yoshida Date: Wed, 29 Jul 2015 13:41:11 +0900 Subject: [PATCH] do not overwrite `node-integration` option If `node-integration` option pass to window.open, do not overwrite by current window's one --- atom/renderer/lib/override.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atom/renderer/lib/override.coffee b/atom/renderer/lib/override.coffee index 85914b116fd6..aea7feb3cbfe 100644 --- a/atom/renderer/lib/override.coffee +++ b/atom/renderer/lib/override.coffee @@ -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