From 04f7b1639cf8de5e3ab0a323ddc2fe5caa877854 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Thu, 14 May 2026 11:58:27 +0000 Subject: [PATCH] Changes Co-authored-by: Reifonas <211114984+Reifonas@users.noreply.github.com> --- src/pages/Index.tsx | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/pages/Index.tsx b/src/pages/Index.tsx index 95a4092..b1f2dd5 100644 --- a/src/pages/Index.tsx +++ b/src/pages/Index.tsx @@ -8,28 +8,6 @@ import { getSupportedExtension, convertToGLB, ACCEPTED_EXTENSIONS } from '@/lib/ import { convertIFCtoGLB } from '@/lib/convertIFC'; import { CloudLoader } from '@/components/CloudLoader'; -/** - * Normaliza URLs comuns para apontar ao binário direto. - * - Dropbox: força dl=1 - * - OneDrive (1drv.ms / onedrive.live.com): força download=1 - */ -function normalizeCloudUrl(input: string): string { - try { - const u = new URL(input); - if (/(^|\.)dropbox\.com$/.test(u.hostname)) { - u.searchParams.set('dl', '1'); - return u.toString(); - } - if (/(^|\.)1drv\.ms$|onedrive\.live\.com$/.test(u.hostname)) { - u.searchParams.set('download', '1'); - return u.toString(); - } - return input; - } catch { - return input; - } -} - const Index = () => { const navigate = useNavigate(); const fileInputRef = useRef(null);