From 293208d10aa3e341adef5e6c32a1cfcb943263e0 Mon Sep 17 00:00:00 2001 From: SpikeNew7774 Date: Wed, 9 Apr 2025 14:00:17 +0200 Subject: [PATCH] Fixed the SongPlaceholder Image not being able to load --- Source/LyricViews/Shared.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/LyricViews/Shared.ts b/Source/LyricViews/Shared.ts index 910d0ed..e54ed09 100644 --- a/Source/LyricViews/Shared.ts +++ b/Source/LyricViews/Shared.ts @@ -118,6 +118,10 @@ const GenerateBlurredCoverArt = async () => { const image = new Image() image.src = coverArt + // Added a check to see if the cover art is external. This fixed the SongPlaceholder Image not being able to load. + if (coverArt.includes("https://") || coverArt.includes("http://")) { + image.crossOrigin = "anonymous"; + } await image.decode() const originalSize = Math.min(image.width, image.height) // Crop to a square