📝 Experimental Features
This commit is contained in:
parent
e73f142adc
commit
39e0efd9a4
1 changed files with 29 additions and 0 deletions
|
@ -301,6 +301,35 @@ const mainWindow = new BrowserWindow({
|
|||
const mainWindow = new BrowserWindow({})
|
||||
```
|
||||
|
||||
|
||||
## Do Not Enable Experimental Features
|
||||
|
||||
Advanced users of Electron can enable experimental Chromium features using the
|
||||
`experimentalFeatures` and `experimentalCanvasFeatures` properties.
|
||||
|
||||
### Why?
|
||||
|
||||
Experimental features are, as the name suggests, experimental and have not been
|
||||
enabled for all Chromium users. Futhermore, their impact on Electron as a whole
|
||||
has likely not been tested.
|
||||
|
||||
Legitimate use cases exist, but unless you know what you are doing, you should
|
||||
not enable this property.
|
||||
|
||||
### How?
|
||||
|
||||
```js
|
||||
// Bad
|
||||
const mainWindow = new BrowserWindow({
|
||||
webPreferences: {
|
||||
experimentalFeatures: true
|
||||
}
|
||||
})
|
||||
|
||||
// Good
|
||||
const mainWindow = new BrowserWindow({})
|
||||
```
|
||||
|
||||
## Verify WebView Options Before Creation
|
||||
A WebView created in a renderer process that does not have Node.js integration
|
||||
enabled will not be able to enable integration itself. However, a WebView will
|
||||
|
|
Loading…
Reference in a new issue