mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
* docs: add example on handling the webPrefs change Fixes #17967 * Update breaking-changes.md
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user