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:
parent
d673865881
commit
84212b8e8b
1 changed files with 10 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue