docs(breaking-changes): contextIsolation disables require in renderer (#28087)

* docs(breaking-changes): contextIsolation disables require in renderer

* docs: consistency
This commit is contained in:
Mark Lee 2021-03-11 23:42:15 -08:00 committed by GitHub
parent 6bce814736
commit 40d779a7f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -160,6 +160,9 @@ the previous behavior, `contextIsolation: false` must be specified in WebPrefere
We [recommend having contextIsolation enabled](https://github.com/electron/electron/blob/master/docs/tutorial/security.md#3-enable-context-isolation-for-remote-content) for the security of your application. We [recommend having contextIsolation enabled](https://github.com/electron/electron/blob/master/docs/tutorial/security.md#3-enable-context-isolation-for-remote-content) for the security of your application.
Another implication is that `require()` cannot be used in the renderer process unless
`nodeIntegration` is `true` and `contextIsolation` is `false`.
For more details see: https://github.com/electron/electron/issues/23506 For more details see: https://github.com/electron/electron/issues/23506
### Removed: `crashReporter.getCrashesDirectory()` ### Removed: `crashReporter.getCrashesDirectory()`