mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
feat: expose setBackgroundThrottling api (#15104)
This commit is contained in:
@@ -221,6 +221,9 @@ Object.assign(BrowserWindow.prototype, {
|
||||
},
|
||||
setTouchBar (touchBar) {
|
||||
electron.TouchBar._setOnWindow(touchBar, this)
|
||||
},
|
||||
setBackgroundThrottling (allowed) {
|
||||
this.webContents.setBackgroundThrottling(allowed)
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user