feat: Add isCurrentlyAudible() to WebContents (#13614)

* 🔧 Add isCurrentlyAudible() to WebContents

* ❤️ Implement feedback, use await to wait for event

* 👷 Add missing imports
This commit is contained in:
Felix Rieseberg 2018-07-12 12:35:11 +01:00 committed by Samuel Attard
parent e90c4abc0d
commit deedf6c3f4
7 changed files with 57 additions and 0 deletions

View file

@ -832,6 +832,10 @@ Mute the audio on the current web page.
Returns `Boolean` - Whether this page has been muted.
#### `contents.isCurrentlyAudible()`
Returns `Boolean` - Whether audio is currently playing.
#### `contents.setZoomFactor(factor)`
* `factor` Number - Zoom factor.