Skip to content
Snippets Groups Projects
Unverified Commit 67332790 authored by Darshan Sen's avatar Darshan Sen Committed by GitHub
Browse files

docs: document when BrowserWindow and BrowserView can be used (#33696)

We already document such info for other APIs, like the 'screen' API in
https://github.com/electron/electron/blob/f711fe6b5701196e5d803c04aab44bc62b392f8e/docs/api/screen.md?plain=1#L7-L8

.
So we should do the same thing for these ones too.

Signed-off-by: default avatarDarshan Sen <raisinten@gmail.com>
parent 2d0ad043
No related merge requests found
......@@ -11,6 +11,9 @@ relative to its owning window. It is meant to be an alternative to the
Process: [Main](../glossary.md#main-process)
This module cannot be used until the `ready` event of the `app`
module is emitted.
### Example
```javascript
......
......@@ -4,6 +4,9 @@
Process: [Main](../glossary.md#main-process)
This module cannot be used until the `ready` event of the `app`
module is emitted.
```javascript
// In the main process.
const { BrowserWindow } = require('electron')
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment