From bfaadbdbe43e96457b4c66d3103fb88457c82de6 Mon Sep 17 00:00:00 2001 From: kami <97310758+VlxtIykg@users.noreply.github.com> Date: Wed, 4 Mar 2026 04:49:59 +0800 Subject: [PATCH] fix(): Fix type on fetch patch(): Squash commit --- src/pages/index.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/index.astro b/src/pages/index.astro index 70e0074..f374926 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -53,7 +53,7 @@ let shuffeled = [ const response = await fetch('https://fshare.kami.boo/api/server/folder/cmm9jbqvt00025omwu5cnpw9i') if (response.ok) { const data = await response.json(); - const files = data.files.map(f => `https://fshare.kami.boo/raw${f.url.substring(2)}`).sort(() => Math.random() - .5); + const files = data.files.map((f: Response) => `https://fshare.kami.boo/raw${f.url.substring(2)}`).sort(() => Math.random() - .5); const middle = Math.round(files.length / 2); shuffeled = files.slice(0,middle); images = files.slice(middle);