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,43 +241,43 @@ 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)
|
||||||
```
|
```
|
||||||
|
|
||||||
## Duplicate ARM Assets
|
## Duplicate ARM Assets
|
||||||
|
|
||||||
Each Electron release includes two identical ARM builds with slightly different
|
Each Electron release includes two identical ARM builds with slightly different
|
||||||
filenames, like `electron-v1.7.3-linux-arm.zip` and
|
filenames, like `electron-v1.7.3-linux-arm.zip` and
|
||||||
`electron-v1.7.3-linux-armv7l.zip`. The asset with the `v7l` prefix was added
|
`electron-v1.7.3-linux-armv7l.zip`. The asset with the `v7l` prefix was added
|
||||||
to clarify to users which ARM version it supports, and to disambiguate it from
|
to clarify to users which ARM version it supports, and to disambiguate it from
|
||||||
future armv6l and arm64 assets that may be produced.
|
future armv6l and arm64 assets that may be produced.
|
||||||
|
|
||||||
The file _without the prefix_ is still being published to avoid breaking any
|
The file _without the prefix_ is still being published to avoid breaking any
|
||||||
setups that may be consuming it. Starting at 2.0, the un-prefixed file will
|
setups that may be consuming it. Starting at 2.0, the un-prefixed file will
|
||||||
no longer be published.
|
no longer be published.
|
||||||
|
|
||||||
For details, see
|
For details, see
|
||||||
[6986](https://github.com/electron/electron/pull/6986)
|
[6986](https://github.com/electron/electron/pull/6986)
|
||||||
and
|
and
|
||||||
[7189](https://github.com/electron/electron/pull/7189).
|
[7189](https://github.com/electron/electron/pull/7189).
|
||||||
|
|
Loading…
Reference in a new issue