docs: add example on handling the webPrefs change (#17971) (#18864)

* docs: add example on handling the webPrefs change

Fixes #17967

* Update breaking-changes.md
This commit is contained in:
trop[bot]
2019-06-19 09:54:48 -07:00
committed by Shelley Vohr
parent ae5d556845
commit 18e31da478

View File

@@ -62,7 +62,17 @@ The following `webPreferences` option default values are deprecated in favor of
| `nodeIntegration` | `true` | `false` |
| `webviewTag` | `nodeIntegration` if set else `true` | `false` |
## `nativeWindowOpen`
E.g. Re-enabling the webviewTag
```js
const w = new BrowserWindow({
webPreferences: {
webviewTag: true
}
})
```
### `nativeWindowOpen`
Child windows opened with the `nativeWindowOpen` option will always have Node.js integration disabled.