forked from Ailur/burgernotes-server
Redirects now
This commit is contained in:
parent
95c6b55ca6
commit
feb03314e9
|
@ -32,7 +32,7 @@ changeButton.addEventListener("click", (event) => {
|
||||||
if (response.status == 200) {
|
if (response.status == 200) {
|
||||||
localStorage.setItem("homeserverURL", remote)
|
localStorage.setItem("homeserverURL", remote)
|
||||||
|
|
||||||
history.back()
|
window.location.href = document.referrer + "?refresh";
|
||||||
}
|
}
|
||||||
else if (response.status == 404) {
|
else if (response.status == 404) {
|
||||||
statusBox.innerText = "Not a valid homeserver!"
|
statusBox.innerText = "Not a valid homeserver!"
|
||||||
|
|
|
@ -15,6 +15,11 @@ 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,6 +15,11 @@ 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")
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
background-size: 312px
|
background-size: 312px
|
||||||
}
|
}
|
||||||
.inoutdiv {
|
.inoutdiv {
|
||||||
background-color: #fff;
|
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue