I don't think I can code
This commit is contained in:
parent
fdfecdec98
commit
95c6b55ca6
|
@ -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)
|
||||
|
||||
|
|
|
@ -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) => {
|
||||
|
|
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue