Skip to content

Commit 18e31da

Browse files
trop[bot]codebytere
authored andcommitted
docs: add example on handling the webPrefs change (electron#17971) (electron#18864)
* docs: add example on handling the webPrefs change Fixes electron#17967 * Update breaking-changes.md
1 parent ae5d556 commit 18e31da

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

docs/api/breaking-changes.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,17 @@ The following `webPreferences` option default values are deprecated in favor of
6262
| `nodeIntegration` | `true` | `false` |
6363
| `webviewTag` | `nodeIntegration` if set else `true` | `false` |
6464

65-
## `nativeWindowOpen`
65+
E.g. Re-enabling the webviewTag
66+
67+
```js
68+
const w = new BrowserWindow({
69+
webPreferences: {
70+
webviewTag: true
71+
}
72+
})
73+
```
74+
75+
### `nativeWindowOpen`
6676

6777
Child windows opened with the `nativeWindowOpen` option will always have Node.js integration disabled.
6878

0 commit comments

Comments
 (0)