Add app.resolveProxy API, fixes #545.

This commit is contained in:
Cheng Zhao 2014-08-19 21:26:45 +08:00
parent a840799b46
commit cfae3cd3af
3 changed files with 75 additions and 6 deletions

View file

@ -111,6 +111,14 @@ to the spec of npm modules. So usually you should also specify a `productName`
field, which is your application's full capitalized name, and it will be
preferred over `name` by atom-shell.
## app.resolveProxy(url, callback)
* `url` URL
* `callback` Function
Resolves the proxy information for `url`, the `callback` would be called with
`callback(proxy)` when the request is done.
## app.commandLine.appendSwitch(switch, [value])
Append a switch [with optional value] to Chromium's command line.