Browse Source

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

* docs: add example on handling the webPrefs change

Fixes #17967

* Update breaking-changes.md
Shelley Vohr 5 years ago
parent
commit
6de6d7f6c0
1 changed files with 11 additions and 1 deletions
  1. 11 1
      docs/api/breaking-changes.md

+ 11 - 1
docs/api/breaking-changes.md

@@ -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.