mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-05-25 04:52:10 +00:00
Merge pull request #66 from JulienMaille/JulienMaille-patch-2
FIX #63 cross origin issue when picking color from ad
This commit is contained in:
commit
25e69123de
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