fix: deprecate setLayoutZoomLevelLimits (#21296)
This commit is contained in:
parent
c7cbc2e6b1
commit
9526c5584e
14 changed files with 24 additions and 110 deletions
|
@ -1,7 +1,10 @@
|
|||
import { EventEmitter } from 'events'
|
||||
import { deprecate } from 'electron'
|
||||
|
||||
const binding = process.electronBinding('web_frame')
|
||||
|
||||
const setLayoutZoomLevelLimitsWarning = deprecate.warnOnce('setLayoutZoomLevelLimits')
|
||||
|
||||
class WebFrame extends EventEmitter {
|
||||
constructor (public context: Window) {
|
||||
super()
|
||||
|
@ -45,6 +48,10 @@ class WebFrame extends EventEmitter {
|
|||
get routingId () {
|
||||
return binding._getRoutingId(this.context)
|
||||
}
|
||||
|
||||
setLayoutZoomLevelLimits () {
|
||||
setLayoutZoomLevelLimitsWarning()
|
||||
}
|
||||
}
|
||||
|
||||
// Populate the methods.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue