docs: clarify optional args in webFrame.executeJavaScript() (#48458)
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
parent
0a476e8fc5
commit
9310c5261c
1 changed files with 2 additions and 2 deletions
|
@ -139,7 +139,7 @@ by its key, which is returned from `webFrame.insertCSS(css)`.
|
||||||
|
|
||||||
Inserts `text` to the focused element.
|
Inserts `text` to the focused element.
|
||||||
|
|
||||||
### `webFrame.executeJavaScript(code[, userGesture, callback])`
|
### `webFrame.executeJavaScript(code[, userGesture][, callback])`
|
||||||
|
|
||||||
* `code` string
|
* `code` string
|
||||||
* `userGesture` boolean (optional) - Default is `false`.
|
* `userGesture` boolean (optional) - Default is `false`.
|
||||||
|
@ -160,7 +160,7 @@ In the browser window some HTML APIs like `requestFullScreen` can only be
|
||||||
invoked by a gesture from the user. Setting `userGesture` to `true` will remove
|
invoked by a gesture from the user. Setting `userGesture` to `true` will remove
|
||||||
this limitation.
|
this limitation.
|
||||||
|
|
||||||
### `webFrame.executeJavaScriptInIsolatedWorld(worldId, scripts[, userGesture, callback])`
|
### `webFrame.executeJavaScriptInIsolatedWorld(worldId, scripts[, userGesture][, callback])`
|
||||||
|
|
||||||
* `worldId` Integer - The ID of the world to run the javascript
|
* `worldId` Integer - The ID of the world to run the javascript
|
||||||
in, `0` is the default main world (where content runs), `999` is the
|
in, `0` is the default main world (where content runs), `999` is the
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue