mirror of
https://github.com/electron/electron.git
synced 2026-01-23 06:18:17 -05:00
Only append --register-standard-schemes when needed
This commit is contained in:
@@ -183,12 +183,12 @@ void AtomBrowserClient::AppendExtraCommandLineSwitches(
|
||||
base::CommandLine* command_line,
|
||||
int process_id) {
|
||||
std::string process_type = command_line->GetSwitchValueASCII("type");
|
||||
|
||||
if (process_type != "renderer")
|
||||
return;
|
||||
|
||||
command_line->AppendSwitchASCII(switches::kRegisterStandardSchemes,
|
||||
g_custom_schemes);
|
||||
if (!g_custom_schemes.empty())
|
||||
command_line->AppendSwitchASCII(switches::kRegisterStandardSchemes,
|
||||
g_custom_schemes);
|
||||
|
||||
NativeWindow* window;
|
||||
WebViewManager::WebViewInfo info;
|
||||
|
||||
Reference in New Issue
Block a user