New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document static methods on webContents #6489
Conversation
57c8a94
to
a4001fb
Compare
The # webContents
## Methods
### `webContents.fromId(id)`
## Class: WebContents
### Instance Methods
#### `contents.loadURL(url)` The architecture is the same with |
Yeah, I did it this way initially to keep it consistent with the current layout of https://github.com/electron/electron/blob/master/docs/api/browser-window.md#static-methods I'm up for refactoring them to the new format, but I thought we would probably do them all at once conforming to the new styleguide. |
The The essential difference between |
Yup, thanks for clarifying 👍 I've updated all the sections to follow the styleguide. |
👍 |
This pull requests documents two new public API:
webContents.getAllWebContents()
(similar toBrowserWindow.getAllWindows()
)webContents.getFocusedWebContents()
(similar toBrowserWindow.getFocusedWindow()
Also adds an initial spec for
webContents
static APIs.