From 0b437bce8a36c08dd8b4f3fcc148c3fca27c7da3 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Fri, 15 May 2026 11:48:41 +0000 Subject: [PATCH] Changes Co-authored-by: Reifonas <211114984+Reifonas@users.noreply.github.com> --- src/pages/Index.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/pages/Index.tsx b/src/pages/Index.tsx index f6a4b49..0126af5 100644 --- a/src/pages/Index.tsx +++ b/src/pages/Index.tsx @@ -45,18 +45,15 @@ const Index = () => { } if (ext === 'glb') { - // Para GLB, valida a assinatura antes de criar o objectURL + // Para GLB, valida assinatura "glTF" antes de criar o objectURL try { const head = await file.slice(0, 16).arrayBuffer(); - const headBuf = new ArrayBuffer(file.size); - // Para validar assinatura precisamos só do header — slice já basta const sigCheck = validateModelFile(file.name, file.size, ext, head); if (!sigCheck.ok) { toast.error(sigCheck.reason!); if (sigCheck.detail) console.warn('[validateModelFile]', sigCheck.detail); return; } - void headBuf; } catch (err) { console.error('[upload] header read failed', err); }