ui: move logout into the hamburger menu too

This commit is contained in:
jozamudi committed 2026-08-19 16:42:34 +00:00
1 parent 1fb6db475c
commit e0f5427002
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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");