mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-12 08:45:38 +02:00
🐛 fix: Remove cross-origin isolation
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -44,4 +44,7 @@ yarn-error.log*
|
|||||||
bun.lockb
|
bun.lockb
|
||||||
|
|
||||||
#tests
|
#tests
|
||||||
id_*
|
id_*
|
||||||
|
|
||||||
|
# Rust
|
||||||
|
target
|
||||||
@@ -46,7 +46,7 @@ export const ImageLoader = component$((props: ImageLoaderProps) => {
|
|||||||
const ctx = canvas.getContext('2d', { willReadFrequently: true });
|
const ctx = canvas.getContext('2d', { willReadFrequently: true });
|
||||||
if (!ctx) return;
|
if (!ctx) return;
|
||||||
|
|
||||||
img.crossOrigin = "anonymous"
|
// img.crossOrigin = "anonymous"
|
||||||
canvas.width = img.width;
|
canvas.width = img.width;
|
||||||
canvas.height = img.height;
|
canvas.height = img.height;
|
||||||
ctx.drawImage(img, 0, 0, canvas.width, canvas.height);
|
ctx.drawImage(img, 0, 0, canvas.width, canvas.height);
|
||||||
|
|||||||
Reference in New Issue
Block a user