mirror of
https://github.com/electron/electron.git
synced 2026-02-03 19:55:43 -05:00
Only append arguments for browser process.
This commit is contained in:
@@ -60,8 +60,8 @@ void AtomMainDelegate::PreSandboxStartup() {
|
||||
std::string process_type = command_line->GetSwitchValueASCII(
|
||||
switches::kProcessType);
|
||||
|
||||
// Don't append arguments for renderer process.
|
||||
if (process_type == switches::kRendererProcess)
|
||||
// Only append arguments for browser process.
|
||||
if (!process_type.empty())
|
||||
return;
|
||||
|
||||
// Add a flag to mark the start of switches added by atom-shell.
|
||||
|
||||
Reference in New Issue
Block a user