Load the "preload" script in <webview>

This commit is contained in:
Cheng Zhao 2014-11-06 15:13:37 +08:00
parent 8d8bfcd120
commit 217b1afe87
8 changed files with 24 additions and 3 deletions

View file

@ -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);
}
}