mirror of https://github.com/tootsuite/mastodon
Fix initial audio volume not corresponding to what's displayed (#14057)
parent
df30002df8
commit
755e8c76ab
|
@ -128,6 +128,7 @@ class Audio extends React.PureComponent {
|
||||||
this.wavesurfer.createPeakCache();
|
this.wavesurfer.createPeakCache();
|
||||||
this.wavesurfer.load(this.props.src);
|
this.wavesurfer.load(this.props.src);
|
||||||
this.wavesurfer.toggleInteraction();
|
this.wavesurfer.toggleInteraction();
|
||||||
|
this.wavesurfer.setVolume(this.state.volume);
|
||||||
this.loaded = true;
|
this.loaded = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue