Add headings for each module
This commit is contained in:
parent
25f5135134
commit
d1876aa313
1 changed files with 22 additions and 4 deletions
|
@ -5,6 +5,17 @@ The following list includes the APIs that will be removed in Electron 2.0.
|
||||||
There is no timetable for when this release will occur but deprecation
|
There is no timetable for when this release will occur but deprecation
|
||||||
warnings will be added at least 90 days beforehand.
|
warnings will be added at least 90 days beforehand.
|
||||||
|
|
||||||
|
## `BrowserWindow`
|
||||||
|
|
||||||
|
```js
|
||||||
|
// Deprecated
|
||||||
|
new BrowserWindow({webPreferences: {blinkFeatures: ''}})
|
||||||
|
// Replace with
|
||||||
|
new BrowserWindow({webPreferences: {enableBlinkFeatures: ''}})
|
||||||
|
```
|
||||||
|
|
||||||
|
## `clipboard`
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// Deprecated
|
// Deprecated
|
||||||
clipboard.readRtf()
|
clipboard.readRtf()
|
||||||
|
@ -25,7 +36,11 @@ clipboard.readHTML()
|
||||||
clipboard.writeHtml()
|
clipboard.writeHtml()
|
||||||
// Replace with
|
// Replace with
|
||||||
clipboard.writeHTML()
|
clipboard.writeHTML()
|
||||||
|
```
|
||||||
|
|
||||||
|
## `nativeImage`
|
||||||
|
|
||||||
|
```js
|
||||||
// Deprecated
|
// Deprecated
|
||||||
nativeImage.toPng()
|
nativeImage.toPng()
|
||||||
// Replace with
|
// Replace with
|
||||||
|
@ -35,12 +50,11 @@ nativeImage.toPNG()
|
||||||
nativeImage.toJpeg()
|
nativeImage.toJpeg()
|
||||||
// Replace with
|
// Replace with
|
||||||
nativeImage.toJPEG()
|
nativeImage.toJPEG()
|
||||||
|
```
|
||||||
|
|
||||||
// Deprecated
|
## `Tray`
|
||||||
new BrowserWindow({webPreferences: {blinkFeatures: ''}})
|
|
||||||
// Replace with
|
|
||||||
new BrowserWindow({webPreferences: {enableBlinkFeatures: ''}})
|
|
||||||
|
|
||||||
|
```js
|
||||||
// Deprecated
|
// Deprecated
|
||||||
tray.setHighlightMode(true)
|
tray.setHighlightMode(true)
|
||||||
// Replace with
|
// Replace with
|
||||||
|
@ -50,7 +64,11 @@ tray.setHighlightMode('on')
|
||||||
tray.setHighlightMode(false)
|
tray.setHighlightMode(false)
|
||||||
// Replace with
|
// Replace with
|
||||||
tray.setHighlightMode('off')
|
tray.setHighlightMode('off')
|
||||||
|
```
|
||||||
|
|
||||||
|
## `webContents`
|
||||||
|
|
||||||
|
```js
|
||||||
// Deprecated
|
// Deprecated
|
||||||
webContents.openDevTools({detach: true})
|
webContents.openDevTools({detach: true})
|
||||||
// Replace with
|
// Replace with
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue