mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-12 16:55:37 +02:00
🐛 fix: Remove cross-origin isolation
This commit is contained in:
@@ -24,7 +24,7 @@ export const Card = component$(({ titleWidth, titleHeight, game, size, ...props
|
|||||||
return Promise.all([modalUrl, modalTitleUrl].map(url => {
|
return Promise.all([modalUrl, modalTitleUrl].map(url => {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
const img = new Image();
|
const img = new Image();
|
||||||
img.crossOrigin = "anonymous"
|
// img.crossOrigin = "anonymous"
|
||||||
img.onload = () => resolve(img);
|
img.onload = () => resolve(img);
|
||||||
img.onerror = reject;
|
img.onerror = reject;
|
||||||
img.src = url;
|
img.src = url;
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ export const BasicImageLoader = component$((props: ImageLoaderProps) => {
|
|||||||
draggable={false}
|
draggable={false}
|
||||||
alt={props.alt}
|
alt={props.alt}
|
||||||
width={props.width}
|
width={props.width}
|
||||||
crossOrigin='anonymous'
|
// crossOrigin='anonymous'
|
||||||
height={props.height}
|
height={props.height}
|
||||||
ref={imgRef}
|
ref={imgRef}
|
||||||
class={{
|
class={{
|
||||||
|
|||||||
Reference in New Issue
Block a user