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-07-08 16:25:03 +0200
committerGitHub <noreply@github.com>2020-07-08 16:25:03 +0200
commit54e62f8500e69fb0172d565d062354bc6c19b012 (patch)
treeb5ff100059ab31e064c33f5df8f33301febb5609 /app/javascript/flavours/glitch/features/audio/index.js
parentc41da2e96294dc24ba7e039cd3151916fff664db (diff)
parent11446be6d13f6d4748227a329dcc75c5c78c915d (diff)
Merge pull request #1378 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/javascript/flavours/glitch/features/audio/index.js')
-rw-r--r--app/javascript/flavours/glitch/features/audio/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/audio/index.js b/app/javascript/flavours/glitch/features/audio/index.js
index 181d8e980..d833e0fe9 100644
--- a/app/javascript/flavours/glitch/features/audio/index.js
+++ b/app/javascript/flavours/glitch/features/audio/index.js
@@ -102,7 +102,7 @@ class Audio extends React.PureComponent {
   }
 
   componentDidUpdate (prevProps, prevState) {
-    if (prevProps.src !== this.props.src || this.state.width !== prevState.width || this.state.height !== prevState.height) {
+    if (prevProps.src !== this.props.src || this.state.width !== prevState.width || this.state.height !== prevState.height || prevProps.accentColor !== this.props.accentColor) {
       this._clear();
       this._draw();
     }