From dc84d9b50398ce0cdd9064ee682d0c32cb673bfa Mon Sep 17 00:00:00 2001 From: ayaka Date: Thu, 21 Nov 2024 00:58:15 +1300 Subject: [PATCH] unfinished checkupdate changes (needs fixing(soon)) --- static/check_update.js | 2 +- templates/error.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/static/check_update.js b/static/check_update.js index fc9cd61..da15d8e 100644 --- a/static/check_update.js +++ b/static/check_update.js @@ -42,7 +42,7 @@ async function checkOtherInstances() { const instanceUrl = randomInstance.url; // Set the href of the tag to the instance URL with path included document.getElementById('random-instance').href = instanceUrl + window.location.pathname; - document.getElementById('random-instance').innerText = "Visit Random Instance"; + //document.getElementById('random-instance').innerText = "Visit Random Instance"; } catch (error) { console.error('Error fetching instances:', error); document.getElementById('update-status').innerText = '⚠️ Error checking update status.'; diff --git a/templates/error.html b/templates/error.html index 3057203..e4c799f 100644 --- a/templates/error.html +++ b/templates/error.html @@ -8,14 +8,14 @@


-

+


-

Expected something to work? Try a upstream instance.

+

Expected something to work? Try a random upstream instance.


-

!! Do NOT open an issue on the redlib repository with a redsunlib specific issue !!

+

!! Do NOT open an issue on the redlib repository with a redsunlib specific issue !!


If you're getting a "Failed to parse page JSON data" error, please check #318