Skip to content

Commit

Permalink
Add null as type for browserView.webContents
Browse files Browse the repository at this point in the history
Fixes: electron#40567

`null` was introduced as a possibility for destroyed webContents in this PR: electron#25411
  • Loading branch information
Juice10 committed Nov 20, 2023
1 parent 2c03b8f commit 74ecec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/browser-view.md
Expand Up @@ -41,7 +41,7 @@ Objects created with `new BrowserView` have the following properties:

#### `view.webContents` _Experimental_

A [`WebContents`](web-contents.md) object owned by this view.
Returns `WebContents | null` - The [web contents](web-contents.md) object owned by this view, or `null` when web contents were [destroyed](web-contents.md#event-destroyed).

### Instance Methods

Expand Down

0 comments on commit 74ecec1

Please sign in to comment.