зеркало из https://github.com/electron/electron.git
docs: add missing line in web-contents.md (#28376)
* Update web-contents.md The text block was rendered as part of the `features` property, not the `handler` * fix linting
This commit is contained in:
Родитель
fb4e99e729
Коммит
521146f71e
|
@ -1131,6 +1131,7 @@ Ignore application menu shortcuts while this web contents is focused.
|
|||
* `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()`.
|
||||
|
||||
Returns `{action: 'deny'} | {action: 'allow', overrideBrowserWindowOptions?: BrowserWindowConstructorOptions}` - `deny` cancels the creation of the new
|
||||
window. `allow` will allow the new window to be created. Specifying `overrideBrowserWindowOptions` allows customization of the created window.
|
||||
Returning an unrecognized value such as a null, undefined, or an object
|
||||
|
|
Загрузка…
Ссылка в новой задаче