From fcd3bff9f652951ac8ed397b4968b2f387e665df Mon Sep 17 00:00:00 2001 From: Julien <182520+JulienMaille@users.noreply.github.com> Date: Tue, 12 Oct 2021 00:35:39 +0200 Subject: [PATCH] FIX #63 cross origin issue when picking color from ad --- dribbblish-dynamic.js | 1 + 1 file changed, 1 insertion(+) diff --git a/dribbblish-dynamic.js b/dribbblish-dynamic.js index 136619d..53b383e 100644 --- a/dribbblish-dynamic.js +++ b/dribbblish-dynamic.js @@ -342,6 +342,7 @@ async function songchange() { Spicetify.Player.addEventListener("songchange", songchange) function pickCoverColor(img) { + img.setAttribute('crossOrigin', '') var swatches = new Vibrant(img, 5).swatches() lightCols = ["Vibrant", "DarkVibrant", "Muted", "LightVibrant"] darkCols = ["Vibrant", "LightVibrant", "Muted", "DarkVibrant"]