Load the "preload" script in <webview>
This commit is contained in:
parent
8d8bfcd120
commit
217b1afe87
8 changed files with 24 additions and 3 deletions
|
@ -156,6 +156,10 @@ void AtomBrowserClient::AppendExtraCommandLineSwitches(
|
|||
info.node_integration ? "true" : "false");
|
||||
if (info.plugins)
|
||||
command_line->AppendSwitch(switches::kEnablePlugins);
|
||||
if (!info.preload_script.empty())
|
||||
command_line->AppendSwitchPath(
|
||||
switches::kPreloadScript,
|
||||
info.preload_script);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue