From c4b68d88e99e558a604698c8d808cfccfd1339e0 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 22 Nov 2016 08:11:14 -0800 Subject: [PATCH] Add setZoomLevelLimits to planned breaking changes --- docs/tutorial/planned-breaking-changes.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/docs/tutorial/planned-breaking-changes.md b/docs/tutorial/planned-breaking-changes.md index ad12434..ed3606f 100644 --- a/docs/tutorial/planned-breaking-changes.md +++ b/docs/tutorial/planned-breaking-changes.md @@ -86,6 +86,31 @@ webContents.openDevTools({detach: true}) webContents.openDevTools({mode: 'detach'}) ``` +```js +// Deprecated +webContents.setZoomLevelLimits(1, 2) +// Replace with +webContents.setVisualZoomLevelLimits(1, 2) +``` + +## `webFrame` + +```js +// Deprecated +webFrame.setZoomLevelLimits(1, 2) +// Replace with +webFrame.setVisualZoomLevelLimits(1, 2) +``` + +## `` + +```js +// Deprecated +webview.setZoomLevelLimits(1, 2) +// Replace with +webview.setVisualZoomLevelLimits(1, 2) +``` + ## Node Headers URL This is the URL specified as `disturl` in a `.npmrc` file or as the `--dist-url` -- 2.7.4