diff --git a/atom/browser/web_contents_preferences.cc b/atom/browser/web_contents_preferences.cc index b651ee85147e..6c706199fb9f 100644 --- a/atom/browser/web_contents_preferences.cc +++ b/atom/browser/web_contents_preferences.cc @@ -111,9 +111,8 @@ void WebContentsPreferences::AppendExtraCommandLineSwitches( // If the `sandbox` option was passed to the BrowserWindow's webPreferences, // pass `--enable-sandbox` to the renderer so it won't have any node.js // integration. - if (IsSandboxed(web_contents)) + if (IsSandboxed(web_contents)) command_line->AppendSwitch(switches::kEnableSandbox); - if (web_preferences.GetBoolean("nativeWindowOpen", &b) && b) command_line->AppendSwitch(switches::kNativeWindowOpen);