chg: More readable response when not logged in

This commit is contained in:
SinTan1729
2024-04-01 00:58:18 -05:00
parent 917be6ade4
commit 604e95aa9c
2 changed files with 6 additions and 6 deletions

View File

@@ -25,8 +25,8 @@ const getVersion = async () => await fetch(prepSubdir("/api/version"))
const refreshData = async () => {
let reply = await fetch(prepSubdir("/api/all")).then(res => res.text());
if (reply == "logged_out") {
console.log("logged_out");
if (reply == "Not logged in!") {
console.log("Not logged in!");
document.getElementById("container").style.filter = "blur(2px)"
document.getElementById("login-dialog").showModal();
document.getElementById("password").focus();