mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
fix some optional args docs
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -405,7 +405,7 @@ Injects CSS into the guest page.
|
||||
### `<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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user