Merge pull request #9095 from seanchas116/better-path-resolve

Search for module from app path when URL is not file protocol
This commit is contained in:
Kevin Sawicki 2017-04-20 10:49:53 -07:00 committed by GitHub
commit a004cada7c
8 changed files with 59 additions and 4 deletions

View file

@ -235,6 +235,11 @@ void AtomBrowserClient::AppendExtraCommandLineSwitches(
}
#endif
if (delegate_) {
auto app_path = static_cast<api::App*>(delegate_)->GetAppPath();
command_line->AppendSwitchPath(switches::kAppPath, app_path);
}
content::WebContents* web_contents = GetWebContentsFromProcessID(process_id);
if (!web_contents)
return;