docs: webFrameMain.fromId() can return undefined (#27068)

* docs: webFrameMain.fromId() can return undefined

* docs: webFrameMain.fromId() can return undefined
This commit is contained in:
Milan Burda 2021-01-05 03:31:21 +01:00 committed by GitHub
parent c210956afb
commit 16c864a932
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 17 deletions

View file

@ -63,7 +63,8 @@ These methods can be accessed from the `webFrameMain` module:
instances (`frame.routingId`) and are also passed by frame
specific `WebContents` navigation events (e.g. `did-frame-navigate`).
Returns `WebFrameMain` - A frame with the given process and routing IDs.
Returns `WebFrameMain | undefined` - A frame with the given process and routing IDs,
or `undefined` if there is no WebFrameMain associated with the given IDs.
## Class: WebFrameMain