mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix lint error
This commit is contained in:
@@ -111,12 +111,12 @@ void WebContentsPreferences::AppendExtraCommandLineSwitches(
|
||||
if (IsSandboxed(web_contents)) {
|
||||
// pass `--enable-sandbox` to the renderer so it won't have any node.js
|
||||
// integration.
|
||||
command_line->AppendSwitch(switches::kEnableSandbox);
|
||||
}
|
||||
else {
|
||||
command_line->AppendSwitch(switches::kEnableSandbox);
|
||||
} else {
|
||||
// Disable renderer sandbox for most of node's functions.
|
||||
command_line->AppendSwitch(::switches::kNoSandbox);
|
||||
}
|
||||
|
||||
if (web_preferences.GetBoolean("nativeWindowOpen", &b) && b)
|
||||
command_line->AppendSwitch(switches::kNativeWindowOpen);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user