From 5eb21eeadb7436708f79113fc0ebdadc43835911 Mon Sep 17 00:00:00 2001 From: Wanjohi Date: Wed, 27 Nov 2024 11:48:08 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20Remove=20cross-origin=20i?= =?UTF-8?q?solation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/ui/src/card.tsx | 2 +- packages/ui/src/image/basic-image-loader.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ui/src/card.tsx b/packages/ui/src/card.tsx index 6346c549..b500f5d7 100644 --- a/packages/ui/src/card.tsx +++ b/packages/ui/src/card.tsx @@ -24,7 +24,7 @@ export const Card = component$(({ titleWidth, titleHeight, game, size, ...props return Promise.all([modalUrl, modalTitleUrl].map(url => { return new Promise((resolve, reject) => { const img = new Image(); - img.crossOrigin = "anonymous" + // img.crossOrigin = "anonymous" img.onload = () => resolve(img); img.onerror = reject; img.src = url; diff --git a/packages/ui/src/image/basic-image-loader.tsx b/packages/ui/src/image/basic-image-loader.tsx index 0024ccb5..2377a56f 100644 --- a/packages/ui/src/image/basic-image-loader.tsx +++ b/packages/ui/src/image/basic-image-loader.tsx @@ -86,7 +86,7 @@ export const BasicImageLoader = component$((props: ImageLoaderProps) => { draggable={false} alt={props.alt} width={props.width} - crossOrigin='anonymous' + // crossOrigin='anonymous' height={props.height} ref={imgRef} class={{