Redirects now
This commit is contained in:
parent
95c6b55ca6
commit
feb03314e9
|
@ -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!"
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
background-size: 312px
|
||||
}
|
||||
.inoutdiv {
|
||||
background-color: #fff;
|
||||
border-radius: 8px;
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Reference in New Issue