I don't think I can code

This commit is contained in:
Tracker-Friendly 2024-03-12 17:42:13 +00:00
parent fdfecdec98
commit 95c6b55ca6
3 changed files with 3 additions and 5 deletions

View File

@ -17,7 +17,7 @@ changeButton.addEventListener("click", (event) => {
async function doStuff() {
let remote = homeserverBox.value
if (username == "") {
if (remote == "") {
statusBox.innerText = "A homeserver is required!"
return
}
@ -29,8 +29,6 @@ changeButton.addEventListener("click", (event) => {
.then((response) => response)
.then((response) => {
async function doStuff() {
let responseData = await response.json()
if (response.status == 200) {
localStorage.setItem("homeserverURL", remote)

View File

@ -72,7 +72,7 @@ function showElements(yesorno) {
}
document.addEventListener('DOMContentLoaded', function() {
document.getElementById("homeserver").innerText = "Your homeserver is: " + origin + ". "
document.getElementById("homeserver").innerText = "Your homeserver is: " + remote + ". "
});
signupButton.addEventListener("click", (event) => {

View File

@ -34,7 +34,7 @@ function showElements(yesorno) {
}
document.addEventListener('DOMContentLoaded', function() {
document.getElementById("homeserver").innerText = "Your homeserver is: " + origin + ". "
document.getElementById("homeserver").innerText = "Your homeserver is: " + remote + ". "
});
signupButton.addEventListener("click", (event) => {