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

@ -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`