mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-05-24 12:35:05 +00:00
FIX #63 cross origin issue when picking color from ad
This commit is contained in:
parent
d89601aff0
commit
fcd3bff9f6
1 changed files with 1 additions and 0 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue