Redirects now

This commit is contained in:
Tracker-Friendly 2024-03-12 17:55:24 +00:00
parent 95c6b55ca6
commit feb03314e9
4 changed files with 11 additions and 2 deletions

View File

@ -32,7 +32,7 @@ changeButton.addEventListener("click", (event) => {
if (response.status == 200) {
localStorage.setItem("homeserverURL", remote)
history.back()
window.location.href = document.referrer + "?refresh";
}
else if (response.status == 404) {
statusBox.innerText = "Not a valid homeserver!"

View File

@ -15,6 +15,11 @@ if (remote == null) {
remote = "https://notes.hectabit.org"
}
const queryString = window.location.search;
if (queryString == "?redirect") {
location.reload();
}
let usernameBox = document.getElementById("usernameBox")
let passwordBox = document.getElementById("passwordBox")
let statusBox = document.getElementById("statusBox")

View File

@ -15,6 +15,11 @@ if (remote == null) {
remote = "https://notes.hectabit.org"
}
const queryString = window.location.search;
if (queryString == "?redirect") {
location.reload();
}
let usernameBox = document.getElementById("usernameBox")
let passwordBox = document.getElementById("passwordBox")
let statusBox = document.getElementById("statusBox")

View File

@ -16,7 +16,6 @@
background-size: 312px
}
.inoutdiv {
background-color: #fff;
border-radius: 8px;
}
</style>