mirror of
https://github.com/electron/electron.git
synced 2026-01-25 23:38:18 -05:00
Don't append duplicate arguments to renderer process.
This commit is contained in:
@@ -51,6 +51,12 @@ void AtomMainDelegate::PreSandboxStartup() {
|
||||
InitializeResourceBundle();
|
||||
|
||||
CommandLine* command_line = CommandLine::ForCurrentProcess();
|
||||
std::string process_type = command_line->GetSwitchValueASCII(
|
||||
switches::kProcessType);
|
||||
|
||||
// Don't append arguments for renderer process.
|
||||
if (process_type == switches::kRendererProcess)
|
||||
return;
|
||||
|
||||
// Disable renderer sandbox for most of node's functions.
|
||||
command_line->AppendSwitch(switches::kNoSandbox);
|
||||
|
||||
Reference in New Issue
Block a user