add deprecation notices to webframe

This commit is contained in:
Paul Frazee 2016-11-14 12:33:30 -06:00 committed by Kevin Sawicki
parent 99ea50649a
commit b458201874
2 changed files with 12 additions and 0 deletions

View file

@ -117,6 +117,16 @@ webContents.setVisualZoomLevelLimits(1, 2)
webFrame.setZoomLevelLimits(1, 2)
// Replace with
webFrame.setVisualZoomLevelLimits(1, 2)
// Deprecated
webFrame.registerURLSchemeAsSecure('app')
// Replace with
protocol.registerStandardSchemes('app', {secure: true})
// Deprecated
webFrame.registerURLSchemeAsPrivileged('app', {secure: true})
// Replace with
protocol.registerStandardSchemes('app', {secure: true})
```
## `<webview>`