Remove that dumb unneeded refresh thing
This commit is contained in:
parent
feb03314e9
commit
b0c2d119f6
|
@ -32,7 +32,7 @@ changeButton.addEventListener("click", (event) => {
|
||||||
if (response.status == 200) {
|
if (response.status == 200) {
|
||||||
localStorage.setItem("homeserverURL", remote)
|
localStorage.setItem("homeserverURL", remote)
|
||||||
|
|
||||||
window.location.href = document.referrer + "?refresh";
|
window.location.href = document.referrer;
|
||||||
}
|
}
|
||||||
else if (response.status == 404) {
|
else if (response.status == 404) {
|
||||||
statusBox.innerText = "Not a valid homeserver!"
|
statusBox.innerText = "Not a valid homeserver!"
|
||||||
|
|
|
@ -15,11 +15,6 @@ if (remote == null) {
|
||||||
remote = "https://notes.hectabit.org"
|
remote = "https://notes.hectabit.org"
|
||||||
}
|
}
|
||||||
|
|
||||||
const queryString = window.location.search;
|
|
||||||
if (queryString == "?redirect") {
|
|
||||||
location.reload();
|
|
||||||
}
|
|
||||||
|
|
||||||
let usernameBox = document.getElementById("usernameBox")
|
let usernameBox = document.getElementById("usernameBox")
|
||||||
let passwordBox = document.getElementById("passwordBox")
|
let passwordBox = document.getElementById("passwordBox")
|
||||||
let statusBox = document.getElementById("statusBox")
|
let statusBox = document.getElementById("statusBox")
|
||||||
|
|
|
@ -15,11 +15,6 @@ if (remote == null) {
|
||||||
remote = "https://notes.hectabit.org"
|
remote = "https://notes.hectabit.org"
|
||||||
}
|
}
|
||||||
|
|
||||||
const queryString = window.location.search;
|
|
||||||
if (queryString == "?redirect") {
|
|
||||||
location.reload();
|
|
||||||
}
|
|
||||||
|
|
||||||
let usernameBox = document.getElementById("usernameBox")
|
let usernameBox = document.getElementById("usernameBox")
|
||||||
let passwordBox = document.getElementById("passwordBox")
|
let passwordBox = document.getElementById("passwordBox")
|
||||||
let statusBox = document.getElementById("statusBox")
|
let statusBox = document.getElementById("statusBox")
|
||||||
|
|
Loading…
Reference in New Issue