[Glitch] Fix initial audio volume not corresponding to what's displayed

Port 755e8c76ab to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
pull/1358/head
ThibG 2020-06-15 16:43:30 +02:00 committed by Thibaut Girka
parent 45fbba2742
commit 65a9b788fc
1 changed files with 1 additions and 0 deletions

View File

@ -125,6 +125,7 @@ class Audio extends React.PureComponent {
this.wavesurfer.createPeakCache();
this.wavesurfer.load(this.props.src);
this.wavesurfer.toggleInteraction();
this.wavesurfer.setVolume(this.state.volume);
this.loaded = true;
}