From dbe1c1d4e42ef87bd87090db05eb42ad2499fd71 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 24 Mar 2016 13:22:13 -0700 Subject: [PATCH] Check nodeIntegration on embedder's webPreferences --- lib/browser/guest-window-manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/browser/guest-window-manager.js b/lib/browser/guest-window-manager.js index 467e819fa826..f27bb8329fa4 100644 --- a/lib/browser/guest-window-manager.js +++ b/lib/browser/guest-window-manager.js @@ -30,7 +30,7 @@ var mergeBrowserWindowOptions = function (embedder, options) { mergeOptions(options, embedder.browserWindowOptions) // Disable node integration on child window if disabled on parent window - if (!embedder.browserWindowOptions.webPreferences.nodeIntegration) { + if (!embedder.getWebPreferences().nodeIntegration) { options.webPreferences.nodeIntegration = false } } else {