Skip to content

Commit

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

Fixes electron#17967

* Update breaking-changes.md
  • Loading branch information
MarshallOfSound authored and kiku-jw committed May 16, 2019
1 parent f301b54 commit 5ce5865
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/api/breaking-changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,16 @@ The following `webPreferences` option default values are deprecated in favor of
| `nodeIntegration` | `true` | `false` |
| `webviewTag` | `nodeIntegration` if set else `true` | `false` |

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 5ce5865

Please sign in to comment.