feat: expose setBackgroundThrottling api (#15104)

This commit is contained in:
Andy Dill 2018-10-18 17:32:22 -07:00 committed by Samuel Attard
parent 10db2bce4e
commit 37f2113032
5 changed files with 71 additions and 0 deletions

View file

@ -221,6 +221,9 @@ Object.assign(BrowserWindow.prototype, {
},
setTouchBar (touchBar) {
electron.TouchBar._setOnWindow(touchBar, this)
},
setBackgroundThrottling (allowed) {
this.webContents.setBackgroundThrottling(allowed)
}
})