mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-11 00:05:36 +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
|
||||
|
||||
#tests
|
||||
id_*
|
||||
id_*
|
||||
|
||||
# Rust
|
||||
target
|
||||
@@ -46,7 +46,7 @@ export const ImageLoader = component$((props: ImageLoaderProps) => {
|
||||
const ctx = canvas.getContext('2d', { willReadFrequently: true });
|
||||
if (!ctx) return;
|
||||
|
||||
img.crossOrigin = "anonymous"
|
||||
// img.crossOrigin = "anonymous"
|
||||
canvas.width = img.width;
|
||||
canvas.height = img.height;
|
||||
ctx.drawImage(img, 0, 0, canvas.width, canvas.height);
|
||||
|
||||
Reference in New Issue
Block a user