Skip to content

Commit

Permalink
Merge pull request #28 from THEOplayer/bugfix/mute-button
Browse files Browse the repository at this point in the history
Bugfix/mute button
  • Loading branch information
Jeroen-Veltmans authored Apr 15, 2024
2 parents 5e331b1 + ad7a5c1 commit cd00d2f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## Unreleased

### Fixed

- Fixed an issue where the mute button sometimes did not update its icon after toggling.

## 0.7.0 (2024-04-11)

### Added
Expand Down
1 change: 1 addition & 0 deletions src/ui/components/button/MuteButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export class MuteButton extends PureComponent<MuteButtonProps, MuteButtonState>
private toggleMuted = () => {
const player = (this.context as UiContext).player;
player.muted = !player.muted;
this.setState({ muted: player.muted });
};

render() {
Expand Down

0 comments on commit cd00d2f

Please sign in to comment.