Merge pull request #5086 from electron/no-throttling

Add backgroundThrottling option to webPreferences
This commit is contained in:
Cheng Zhao 2016-04-08 16:25:09 +09:00
commit 5ff97317fe
5 changed files with 25 additions and 7 deletions

View file

@ -179,6 +179,8 @@ The `webPreferences` option is an object that can have following properties:
* `defaultMonospaceFontSize` Integer - Defaults to `13`.
* `minimumFontSize` Integer - Defaults to `0`.
* `defaultEncoding` String - Defaults to `ISO-8859-1`.
* `backgroundThrottling` Boolean - Whether to throttle animations and timers
when the page becomes background. Defaults to `true`.
## Events