mirror of
https://git.suyu.dev/suyu/website.git
synced 2026-01-10 08:28:01 +01:00
Cleanup
This commit is contained in:
parent
631cb61e8a
commit
801bd34d9b
1 changed files with 4 additions and 3 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue