fix: BrowserWindow.fromWebContents() can return null (#19983)
This commit is contained in:
parent
efe6e7b04d
commit
ead8f2bbcd
3 changed files with 7 additions and 4 deletions
|
@ -664,7 +664,8 @@ Returns `BrowserWindow | null` - The window that is focused in this application,
|
|||
|
||||
* `webContents` [WebContents](web-contents.md)
|
||||
|
||||
Returns `BrowserWindow` - The window that owns the given `webContents`.
|
||||
Returns `BrowserWindow | null` - The window that owns the given `webContents`
|
||||
or `null` if the contents are not owned by a window.
|
||||
|
||||
#### `BrowserWindow.fromBrowserView(browserView)`
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue