From 801bd34d9bb2644359c50c2d90e3011464783942 Mon Sep 17 00:00:00 2001 From: million1156 Date: Tue, 26 Mar 2024 19:41:22 -0500 Subject: [PATCH] Cleanup --- src/routes/download/+page.svelte | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/routes/download/+page.svelte b/src/routes/download/+page.svelte index e9aeb34..1173fcb 100644 --- a/src/routes/download/+page.svelte +++ b/src/routes/download/+page.svelte @@ -5,12 +5,13 @@ // cool moving dots :3 // NOTE: This is required to be ran on the server due to issues with Svelte let text = "Downloading Suyu"; + const textLength = text.length setInterval(() => { text += "."; - if (text.length > 19) { + // Text length + 3 is essentially the length of the text above + the 3 dots + if (text.length > textLength + 3) { text = "Downloading Suyu"; } - //console.log(text); }, 500); $: htmlContent = `${text}`; @@ -19,7 +20,7 @@ // Variables const UA = navigator.userAgent; const url = `https://git.suyu.dev/api/v1/repos/suyu/suyu/tags`; - const fakeVersionTag = false; + const fakeVersionTag = false; // Fake version tag? (for debugging) let latestRelease = ""; async function getTag() {