fix some optional args docs
This commit is contained in:
parent
a419fe75ca
commit
2edf4da859
2 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ The `session` module has the following methods:
|
||||||
### `session.fromPartition(partition[, options])`
|
### `session.fromPartition(partition[, options])`
|
||||||
|
|
||||||
* `partition` String
|
* `partition` String
|
||||||
* `options` Object
|
* `options` Object (optional)
|
||||||
* `cache` Boolean - Whether to enable cache.
|
* `cache` Boolean - Whether to enable cache.
|
||||||
|
|
||||||
Returns `Session` - A session instance from `partition` string. When there is an existing
|
Returns `Session` - A session instance from `partition` string. When there is an existing
|
||||||
|
|
|
@ -405,7 +405,7 @@ Injects CSS into the guest page.
|
||||||
### `<webview>.executeJavaScript(code, userGesture, callback)`
|
### `<webview>.executeJavaScript(code, userGesture, callback)`
|
||||||
|
|
||||||
* `code` String
|
* `code` String
|
||||||
* `userGesture` Boolean - Default `false`.
|
* `userGesture` Boolean (optional) - Default `false`.
|
||||||
* `callback` Function (optional) - Called after script has been executed.
|
* `callback` Function (optional) - Called after script has been executed.
|
||||||
* `result` Any
|
* `result` Any
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue