]> khamidou — GitHub mirrors - electron.git/commitdiff
Remove unneeded override code
authorCheng Zhao <zcbenz@gmail.com>
Tue, 10 Nov 2015 16:26:17 +0000 (00:26 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 11 Nov 2015 02:37:34 +0000 (10:37 +0800)
atom/renderer/lib/override.coffee

index e54a0e9685c2143ec0d84991ffe290572243508d..729de8ed64d2dfa3a1ebf1041a74bd08ed57be38 100644 (file)
@@ -60,12 +60,6 @@ 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']?
-    for arg in process.argv when arg.indexOf('--node-integration=') is 0
-      options['node-integration'] = arg.substr(-4) is 'true'
-      break
-
   guestId = ipc.sendSync 'ATOM_SHELL_GUEST_WINDOW_MANAGER_WINDOW_OPEN', url, frameName, options
   if guestId
     new BrowserWindowProxy(guestId)