Merge pull request #1980 from magicae/set-audio-mute
webContents: add setAudioMuted to webContents
This commit is contained in:
commit
bf9af4d45b
5 changed files with 34 additions and 0 deletions
|
@ -877,6 +877,16 @@ Injects CSS into this page.
|
|||
|
||||
Evaluates `code` in page.
|
||||
|
||||
### WebContents.setAudioMuted(muted)
|
||||
|
||||
+ `muted` Boolean
|
||||
|
||||
Set the page muted.
|
||||
|
||||
### WebContents.isAudioMuted()
|
||||
|
||||
Returns whether this page has been muted.
|
||||
|
||||
### WebContents.undo()
|
||||
|
||||
Executes editing command `undo` in page.
|
||||
|
|
|
@ -250,6 +250,16 @@ Starts inspecting element at position (`x`, `y`) of guest page.
|
|||
|
||||
Opens the devtools for the service worker context present in the guest page.
|
||||
|
||||
### `<webview>`.setAudioMuted(muted)
|
||||
|
||||
+ `muted` Boolean
|
||||
|
||||
Set guest page muted.
|
||||
|
||||
### `<webview>`.isAudioMuted()
|
||||
|
||||
Returns whether guest page has been muted.
|
||||
|
||||
### `<webview>`.undo()
|
||||
|
||||
Executes editing command `undo` in page.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue