feat: expose setBackgroundThrottling api (#15104)
This commit is contained in:
parent
10db2bce4e
commit
37f2113032
5 changed files with 71 additions and 0 deletions
|
@ -1527,6 +1527,13 @@ Returns `Promise<void>` - Indicates whether the snapshot has been created succes
|
|||
|
||||
Takes a V8 heap snapshot and saves it to `filePath`.
|
||||
|
||||
#### `contents.setBackgroundThrottling(allowed)`
|
||||
|
||||
* `allowed` Boolean
|
||||
|
||||
Controls whether or not this WebContents will throttle animations and timers
|
||||
when the page becomes backgrounded. This also affects the Page Visibility API.
|
||||
|
||||
### Instance Properties
|
||||
|
||||
#### `contents.id`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue