docs: specify BrowserWindow features passable to window.open

This commit is contained in:
Jakub Žitný 2018-09-10 17:49:54 +02:00
parent 382afc03ae
commit 3ab22c6164
No known key found for this signature in database
GPG key ID: 016CAB756AF768E8

View file

@ -24,7 +24,12 @@ Returns [`BrowserWindowProxy`](browser-window-proxy.md) - Creates a new window
and returns an instance of `BrowserWindowProxy` class.
The `features` string follows the format of standard browser, but each feature
has to be a field of `BrowserWindow`'s options.
has to be a field of `BrowserWindow`'s options. These are the features you can set via `features` string: `zoomFactor`, `nodeIntegration`, `preload`, `javascript`, `contextIsolation`, `webviewTag`.
For example:
```js
window.open('https://github.com', '_blank', 'nodeIntegration=no')
```
**Notes:**