feat: expose setBackgroundThrottling api (#15104)
This commit is contained in:
parent
10db2bce4e
commit
37f2113032
5 changed files with 71 additions and 0 deletions
|
@ -221,6 +221,9 @@ Object.assign(BrowserWindow.prototype, {
|
|||
},
|
||||
setTouchBar (touchBar) {
|
||||
electron.TouchBar._setOnWindow(touchBar, this)
|
||||
},
|
||||
setBackgroundThrottling (allowed) {
|
||||
this.webContents.setBackgroundThrottling(allowed)
|
||||
}
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue