mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
docs: event.newGuest for new-window in WebContents and webContents in BrowsweWindow's constructor (#21698)
* docs: `newGuest` in `WebContents` and `webContents` in `BrowsweWindow` According to the example codes in the documentation of `new-window` event in `WebContents`, `webContents` in `BrowsweWindow` constructor options and `newGuest` in `event` argument of `new-window` handler are both existing but documented. This patch is for adding the related documentations. Also, it provides typescript-definitations for these two properties. * Remove the documnent of `webContents` in BrowserWindow constructor option.
This commit is contained in:
4
docs/api/structures/new-window-event.md
Normal file
4
docs/api/structures/new-window-event.md
Normal file
@@ -0,0 +1,4 @@
|
||||
# NewWindowEvent Object extends `Event`
|
||||
|
||||
* `newGuest` BrowserWindow (optional)
|
||||
|
||||
Reference in New Issue
Block a user