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

* docs: add example on handling the webPrefs change

Fixes #17967

* Update breaking-changes.md
This commit is contained in:
Shelley Vohr
2019-06-18 10:35:27 -07:00
committed by GitHub
parent eb15be06e3
commit 6de6d7f6c0

View File

@@ -110,7 +110,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.