Skip to content

Commit

Permalink
docs: add example on handling the webPrefs change (#17971) (#18864)
Browse files Browse the repository at this point in the history
* docs: add example on handling the webPrefs change

Fixes #17967

* Update breaking-changes.md
  • Loading branch information
trop[bot] authored and codebytere committed Jun 19, 2019
1 parent ae5d556 commit 18e31da
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs/api/breaking-changes.md
Expand Up @@ -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.

Expand Down

0 comments on commit 18e31da

Please sign in to comment.