Modify 2.0 section's phrasing to use past tense
This commit is contained in:
parent
b621321ea0
commit
b0f1b5f65b
1 changed files with 19 additions and 19 deletions
|
@ -212,23 +212,23 @@ let windowB = new BrowserWindow(optionsB)
|
||||||
## `menu`
|
## `menu`
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// Deprecated
|
// Removed
|
||||||
menu.popup(browserWindow, 100, 200, 2)
|
menu.popup(browserWindow, 100, 200, 2)
|
||||||
// Replace with
|
// Replaced with
|
||||||
menu.popup(browserWindow, {x: 100, y: 200, positioningItem: 2})
|
menu.popup(browserWindow, {x: 100, y: 200, positioningItem: 2})
|
||||||
```
|
```
|
||||||
|
|
||||||
## `nativeImage`
|
## `nativeImage`
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// Deprecated
|
// Removed
|
||||||
nativeImage.toPng()
|
nativeImage.toPng()
|
||||||
// Replace with
|
// Replaced with
|
||||||
nativeImage.toPNG()
|
nativeImage.toPNG()
|
||||||
|
|
||||||
// Deprecated
|
// Removed
|
||||||
nativeImage.toJpeg()
|
nativeImage.toJpeg()
|
||||||
// Replace with
|
// Replaced with
|
||||||
nativeImage.toJPEG()
|
nativeImage.toJPEG()
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -241,27 +241,27 @@ nativeImage.toJPEG()
|
||||||
## `webContents`
|
## `webContents`
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// Deprecated
|
// Removed
|
||||||
webContents.setZoomLevelLimits(1, 2)
|
webContents.setZoomLevelLimits(1, 2)
|
||||||
// Replace with
|
// Replaced with
|
||||||
webContents.setVisualZoomLevelLimits(1, 2)
|
webContents.setVisualZoomLevelLimits(1, 2)
|
||||||
```
|
```
|
||||||
|
|
||||||
## `webFrame`
|
## `webFrame`
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// Deprecated
|
// Removed
|
||||||
webFrame.setZoomLevelLimits(1, 2)
|
webFrame.setZoomLevelLimits(1, 2)
|
||||||
// Replace with
|
// Replaced with
|
||||||
webFrame.setVisualZoomLevelLimits(1, 2)
|
webFrame.setVisualZoomLevelLimits(1, 2)
|
||||||
```
|
```
|
||||||
|
|
||||||
## `<webview>`
|
## `<webview>`
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// Deprecated
|
// Removed
|
||||||
webview.setZoomLevelLimits(1, 2)
|
webview.setZoomLevelLimits(1, 2)
|
||||||
// Replace with
|
// Replaced with
|
||||||
webview.setVisualZoomLevelLimits(1, 2)
|
webview.setVisualZoomLevelLimits(1, 2)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue