diff --git a/front/src/components/audio/Player.vue b/front/src/components/audio/Player.vue index 8faaf670c..f074c14e0 100644 --- a/front/src/components/audio/Player.vue +++ b/front/src/components/audio/Player.vue @@ -356,7 +356,11 @@ export default { return } let image = this.$refs.cover - this.ambiantColors = ColorThief.prototype.getPalette(image, 4).slice(0, 4) + try { + this.ambiantColors = ColorThief.prototype.getPalette(image, 4).slice(0, 4) + } catch (e) { + console.log('Cannot generate player background from cover image, likely a cross-origin tainted canvas issue') + } }, handleError({ sound, error }) { this.$store.commit("player/isLoadingAudio", false) diff --git a/front/src/components/audio/album/Card.vue b/front/src/components/audio/album/Card.vue index db6e8de6b..1012cc578 100644 --- a/front/src/components/audio/album/Card.vue +++ b/front/src/components/audio/album/Card.vue @@ -20,7 +20,7 @@ - + diff --git a/front/src/components/audio/track/Row.vue b/front/src/components/audio/track/Row.vue index 90d057960..624467f21 100644 --- a/front/src/components/audio/track/Row.vue +++ b/front/src/components/audio/track/Row.vue @@ -1,7 +1,7 @@