From 1b3083c6a239fd44948fcb9e358c29a09a3e2ded Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Fri, 26 Apr 2019 13:30:45 -0700 Subject: [PATCH] docs: add example on handling the webPrefs change (#17971) * docs: add example on handling the webPrefs change Fixes #17967 * Update breaking-changes.md --- docs/api/breaking-changes.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/api/breaking-changes.md b/docs/api/breaking-changes.md index 2f69fa6cf0781..4cf1fa7f26325 100644 --- a/docs/api/breaking-changes.md +++ b/docs/api/breaking-changes.md @@ -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.