Skip to content

Commit

Permalink
FIX: #95 don't touch cross origin on outdated Spotify versions
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienMaille authored Oct 12, 2024
1 parent 0100375 commit 0ae0d99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion default-dynamic.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,10 @@ Spicetify.Player.addEventListener("songchange", songchange);
function pickCoverColor(img) {
if (Spicetify.Platform.PlatformData.client_version_triple >= "1.2.48") {
if (!img.currentSrc.startsWith("https://i.scdn.co/image")) return;
img.crossOrigin = "Anonymous";
} else {
if (!img.currentSrc.startsWith("spotify:")) return;
}
img.crossOrigin = "Anonymous";
if (img.complete) {
textColor = "#1db954";
try {
Expand Down

0 comments on commit 0ae0d99

Please sign in to comment.