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