mirror of
https://github.com/electron/electron.git
synced 2026-01-08 23:18:06 -05:00
Update docs to contain more specific return values
This commit is contained in:
committed by
Samuel Attard
parent
5114d571df
commit
e0e47ea9a1
@@ -28,7 +28,7 @@ The `protocol` module has the following methods:
|
||||
|
||||
### `protocol.registerStandardSchemes(schemes)`
|
||||
|
||||
* `schemes` Array - Custom schemes to be registered as standard schemes.
|
||||
* `schemes` String[] - Custom schemes to be registered as standard schemes.
|
||||
|
||||
A standard scheme adheres to what RFC 3986 calls [generic URI
|
||||
syntax](https://tools.ietf.org/html/rfc3986#section-3). For example `http` and
|
||||
@@ -70,7 +70,7 @@ module gets emitted.
|
||||
|
||||
### `protocol.registerServiceWorkerSchemes(schemes)`
|
||||
|
||||
* `schemes` Array - Custom schemes to be registered to handle service workers.
|
||||
* `schemes` String[] - Custom schemes to be registered to handle service workers.
|
||||
|
||||
### `protocol.registerFileProtocol(scheme, handler[, completion])`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user