Only append arguments for browser process.
This commit is contained in:
parent
3576c6d2ff
commit
18f8af7822
1 changed files with 2 additions and 2 deletions
|
@ -60,8 +60,8 @@ void AtomMainDelegate::PreSandboxStartup() {
|
||||||
std::string process_type = command_line->GetSwitchValueASCII(
|
std::string process_type = command_line->GetSwitchValueASCII(
|
||||||
switches::kProcessType);
|
switches::kProcessType);
|
||||||
|
|
||||||
// Don't append arguments for renderer process.
|
// Only append arguments for browser process.
|
||||||
if (process_type == switches::kRendererProcess)
|
if (!process_type.empty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Add a flag to mark the start of switches added by atom-shell.
|
// Add a flag to mark the start of switches added by atom-shell.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue