feat: remove browser check to simplicity (AI dumb)

This commit is contained in:
2026-02-04 03:06:50 +05:00
parent 24b4c41039
commit e9c9dc1d69
6 changed files with 110 additions and 169 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ export function validateImageElement(img: HTMLImageElement): ValidationResult {
export async function loadImage(src: string): Promise<HTMLImageElement> {
return new Promise((resolve, reject) => {
const img = new Image();
const img = document.createElement("img");
img.crossOrigin = "anonymous";
img.onload = () => resolve(img);