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

* docs: add example on handling the webPrefs change

Fixes #17967

* Update breaking-changes.md
This commit is contained in:
Samuel Attard
2019-04-26 13:30:45 -07:00
committed by GitHub
parent d673865881
commit 84212b8e8b

View File

@@ -106,6 +106,16 @@ The following `webPreferences` option default values are deprecated in favor of
| `nodeIntegration` | `true` | `false` |
| `webviewTag` | `nodeIntegration` if set else `true` | `false` |
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.