about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features/audio/index.js
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-06-15 16:43:30 +0200
committerThibaut Girka <thib@sitedethib.com>2020-06-17 17:20:14 +0200
commit65a9b788fc4fc9cf57cee8e8a7cae5dca8f97a5e (patch)
treef85c2975fc2238fa4d1d504e655dbdac3d27a914 /app/javascript/flavours/glitch/features/audio/index.js
parent45fbba2742b8b7bf278b68573b39bfb6682e5481 (diff)
[Glitch] Fix initial audio volume not corresponding to what's displayed
Port 755e8c76ab28a99905c66082757d892939e70c49 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/features/audio/index.js')
-rw-r--r--app/javascript/flavours/glitch/features/audio/index.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/features/audio/index.js b/app/javascript/flavours/glitch/features/audio/index.js
index 49e91227f..ba3534492 100644
--- a/app/javascript/flavours/glitch/features/audio/index.js
+++ b/app/javascript/flavours/glitch/features/audio/index.js
@@ -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;
       }