Merge pull request #10273 from rhysd/doc-fix-optional-args

fix some optional args docs
This commit is contained in:
Cheng Zhao 2017-08-18 19:07:56 +09:00 committed by GitHub
commit ac6a44f0ac
2 changed files with 3 additions and 3 deletions

View file

@ -26,7 +26,7 @@ The `session` module has the following methods:
### `session.fromPartition(partition[, options])`
* `partition` String
* `options` Object
* `options` Object (optional)
* `cache` Boolean - Whether to enable cache.
Returns `Session` - A session instance from `partition` string. When there is an existing

View file

@ -402,10 +402,10 @@ Returns `String` - The user agent for guest page.
Injects CSS into the guest page.
### `<webview>.executeJavaScript(code, userGesture, callback)`
### `<webview>.executeJavaScript(code[, userGesture, callback])`
* `code` String
* `userGesture` Boolean - Default `false`.
* `userGesture` Boolean (optional) - Default `false`.
* `callback` Function (optional) - Called after script has been executed.
* `result` Any