Skip to content

Commit

Permalink
fix(player): vol not being set when loading state
Browse files Browse the repository at this point in the history
  • Loading branch information
paulschwoerer committed Oct 21, 2021
1 parent 6e6bb47 commit a08cccb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions web/src/modules/player/PlayerProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,12 @@ export function PlayerProvider({
...state.settings,
},
});

if (audioRef.current) {
audioRef.current.volume = state.settings.isMuted
? 0
: state.settings.volume;
}
}
})
.catch(e =>
Expand Down

0 comments on commit a08cccb

Please sign in to comment.