Skip to content

Commit

Permalink
fix: set initial media muted value
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed May 7, 2018
1 parent 79d4f73 commit 55d9dd2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "libreact",
"version": "1.7.0",
"version": "1.8.0",
"description": "React standard library",
"main": "lib/index.js",
"repository": {
Expand Down
3 changes: 2 additions & 1 deletion src/Media/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ export class Media<P extends IMediaProps<M>, S extends IMediaState, M extends IM
}

this.setState({
volume: this.el.volume
volume: this.el.volume,
muted: this.el.muted,
});

this.event('onMount')(this);
Expand Down

0 comments on commit 55d9dd2

Please sign in to comment.