Remove that dumb unneeded refresh thing

This commit is contained in:
Tracker-Friendly 2024-03-12 18:22:33 +00:00
parent feb03314e9
commit b0c2d119f6
3 changed files with 1 additions and 11 deletions

View File

@ -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!"

View File

@ -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")

View File

@ -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")