ui: move logout into the hamburger menu too
This commit is contained in:
1 parent
1fb6db475c
commit
e0f5427002
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -227,7 +227,7 @@ function showPlayOverlay(v) {
|
||||
const me = await api("/api/me");
|
||||
document.getElementById("me").textContent = "hi, " + me.user;
|
||||
const lo = document.getElementById("logout");
|
||||
lo.style.display = ""; lo.onclick = async () => {
|
||||
lo.onclick = async () => {
|
||||
await fetch(BASE + "logout", {method: "POST"}); location.href = BASE + "login";
|
||||
};
|
||||
const mb = document.getElementById("menubox");
|
||||
|
||||
Reference in new issue
Block a user