Merge pull request #8248 from electron/secure-options
Add options to protocol.registerStandardSchemes docs
This commit is contained in:
commit
b9f569f7fb
1 changed files with 4 additions and 1 deletions
|
@ -28,9 +28,12 @@ of the `app` module gets emitted.
|
|||
|
||||
The `protocol` module has the following methods:
|
||||
|
||||
### `protocol.registerStandardSchemes(schemes)`
|
||||
### `protocol.registerStandardSchemes(schemes[, options])`
|
||||
|
||||
* `schemes` String[] - Custom schemes to be registered as standard schemes.
|
||||
* `options` Object (optional)
|
||||
* `secure` Boolean (optional) - `true` to register the scheme as secure.
|
||||
Default `false`.
|
||||
|
||||
A standard scheme adheres to what RFC 3986 calls [generic URI
|
||||
syntax](https://tools.ietf.org/html/rfc3986#section-3). For example `http` and
|
||||
|
|
Loading…
Reference in a new issue