mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Use GetBoolean directly
This commit is contained in:
@@ -106,7 +106,7 @@ void WebContentsPreferences::AppendExtraCommandLineSwitches(
|
||||
// integration.
|
||||
if (IsSandboxed(web_contents))
|
||||
command_line->AppendSwitch(switches::kEnableSandbox);
|
||||
if (UsesNativeWindowOpen(web_contents))
|
||||
if (web_preferences.GetBoolean("nativeWindowOpen", &b) && b)
|
||||
command_line->AppendSwitch(switches::kNativeWindowOpen);
|
||||
|
||||
// The preload script.
|
||||
|
||||
Reference in New Issue
Block a user