From 70ac650c7e6fffd88c4469ee699b59a792f0317b Mon Sep 17 00:00:00 2001 From: million1156 Date: Mon, 25 Mar 2024 13:41:04 -0500 Subject: [PATCH] Fix invalid release --- src/routes/download/+page.svelte | 11 ++++++----- src/routes/faq/+page.svelte | 6 +++--- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/routes/download/+page.svelte b/src/routes/download/+page.svelte index f8ee7c9..6243ac0 100644 --- a/src/routes/download/+page.svelte +++ b/src/routes/download/+page.svelte @@ -45,10 +45,11 @@ const releases = await response.json(); const latestRelease = releases[0].name; + console.log(latestRelease) // Release found if (latestRelease) { - console.log("Latest release tag:", latestRelease.name); - return latestRelease.name; // Assuming the first result is the latest + console.log("Latest release tag:", latestRelease); + return latestRelease; // Assuming the first result is the latest } else { console.log("No releases found."); return null; @@ -77,7 +78,7 @@ } else { window.location.href = `https://git.suyu.dev/suyu/suyu/releases/${latestRelease}/`; } - }, 3000); + }, 30000); }); @@ -107,13 +108,13 @@ /> -

+

{@html htmlContent}

Your download should start shortly. If it doesn't, click herehere.

diff --git a/src/routes/faq/+page.svelte b/src/routes/faq/+page.svelte index 741b64b..350fc9a 100644 --- a/src/routes/faq/+page.svelte +++ b/src/routes/faq/+page.svelte @@ -39,11 +39,11 @@

Q: What is the purpose of Suyu?

A: The purpose of this project is to provide a free, open-source alternative to the now-dead Yuzu emulator. We believe that the community should be able to emulate their Switch device (legally) and be able to enjoy their favorite game titles.

Q: How can I contribute to Suyu?

-

A: You can contribute to this project by submitting a pull request on our Git page. We are always looking for new contributors to help us improve the project!

+

A: You can contribute to this project by submitting a pull request on our Git page. We are always looking for new contributors to help us improve the project!

Q: Where can I download Suyu?

-

A: You can download the latest build of Suyu from our Git. Please make sure you are using the right URL!

+

A: You can download the latest build of Suyu from our Git. Please make sure you are using the right URL!

Q: What is the current progress for Suyu?

-

A: As of 3/20/2024, we have released our first Windows binary 🎉! You can find it here. We are always trying to make more and more progress, so please feel free to join the Discord!

+

A: As of 3/20/2024, we have released our first Windows binary 🎉! You can find it here. We are always trying to make more and more progress, so please feel free to join the Discord!


Email hosting lovingly provided by