Skip to content

Commit

Permalink
Update setWindowOpenHandler "features" docs
Browse files Browse the repository at this point in the history
Since the introduction of `setWindowOpenHandler` `features` is no longer parsed but passed as a raw string (see electron#28518 (comment)). I've switched to JSON to pass data through `window.open` for my multi-window application. The docs should reflect that this can be an arbitrary string.
  • Loading branch information
Prinzhorn committed Jul 29, 2021
1 parent 4aa9455 commit 1457c6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/web-contents.md
Expand Up @@ -1134,7 +1134,7 @@ Ignore application menu shortcuts while this web contents is focused.
* `details` Object
* `url` String - The _resolved_ version of the URL passed to `window.open()`. e.g. opening a window with `window.open('foo')` will yield something like `https://the-origin/the/current/path/foo`.
* `frameName` String - Name of the window provided in `window.open()`
* `features` String - Comma separated list of window features provided to `window.open()`.
* `features` String - Third argument provided to `window.open()`, usually a comma separated list of window features.
* `disposition` String - Can be `default`, `foreground-tab`, `background-tab`,
`new-window`, `save-to-disk` or `other`.
* `referrer` [Referrer](structures/referrer.md) - The referrer that will be
Expand Down

0 comments on commit 1457c6c

Please sign in to comment.