diff --git a/static/js/homeserver.js b/static/js/homeserver.js index a275639..9d98409 100644 --- a/static/js/homeserver.js +++ b/static/js/homeserver.js @@ -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) diff --git a/static/js/login.js b/static/js/login.js index 622b210..a415070 100644 --- a/static/js/login.js +++ b/static/js/login.js @@ -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) => { diff --git a/static/js/signup.js b/static/js/signup.js index b15e238..e2a0221 100644 --- a/static/js/signup.js +++ b/static/js/signup.js @@ -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) => {