chg: More readable response when not logged in

This commit is contained in:
SinTan1729 committed 2024-04-01 00:58:18 -05:00
1 parent 917be6ade4
commit 604e95aa9c
2 files changed
+6 -6

No files matched your search

+2 -2
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();