🐛 fix: Remove cross-origin isolation

This commit is contained in:
Wanjohi
2024-11-27 11:46:40 +03:00
parent 565c459a5b
commit 339779fce1
2 changed files with 5 additions and 2 deletions

5
.gitignore vendored
View File

@@ -44,4 +44,7 @@ yarn-error.log*
bun.lockb
#tests
id_*
id_*
# Rust
target

View File

@@ -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);