From d2c3646fd9c940a68952699d5aa7e1eea0774189 Mon Sep 17 00:00:00 2001 From: million1156 Date: Wed, 20 Mar 2024 18:46:50 -0500 Subject: [PATCH] fix --- .../api/{redirect => fetchtag}/+server.ts | 2 +- src/routes/download/+page.svelte | 44 ++++++++----------- 2 files changed, 19 insertions(+), 27 deletions(-) rename src/routes/api/{redirect => fetchtag}/+server.ts (91%) diff --git a/src/routes/api/redirect/+server.ts b/src/routes/api/fetchtag/+server.ts similarity index 91% rename from src/routes/api/redirect/+server.ts rename to src/routes/api/fetchtag/+server.ts index 3c8657b..7b85843 100644 --- a/src/routes/api/redirect/+server.ts +++ b/src/routes/api/fetchtag/+server.ts @@ -22,5 +22,5 @@ async function fetchLatestReleaseTag() { } export const load = (async () => { let latestReleaseTag = await fetchLatestReleaseTag(); - return latestReleaseTag ? { body: latestReleaseTag } : { status: 404 }; + return latestReleaseTag //? { body: latestReleaseTag } : { status: 404 }; }) \ No newline at end of file diff --git a/src/routes/download/+page.svelte b/src/routes/download/+page.svelte index df15a0d..0739e08 100644 --- a/src/routes/download/+page.svelte +++ b/src/routes/download/+page.svelte @@ -1,27 +1,20 @@ @@ -51,14 +44,13 @@

Download Suyu

- Your download should start automatically. If it doesn't, click the link below. -

- - - + Your download should start automatically. If it doesn't, click the link below. +

+ +