Versie 1.0

This commit is contained in:
2026-08-09 19:03:26 +02:00
parent c70293405f
commit f3da7dfb8d
18 changed files with 877 additions and 3 deletions
+9
View File
@@ -1,7 +1,16 @@
(() => {
const logoutLink = document.querySelector('a[href="/logout"]');
if (!logoutLink) return;
const socket = window.io && window.io();
if (!socket) return;
logoutLink.addEventListener("click", (event) => {
event.preventDefault();
socket.disconnect();
window.location.assign(logoutLink.href);
});
const listMatch = window.location.pathname.match(/^\/lists\/(\d+)$/);
if (listMatch) socket.emit("list:join", listMatch[1]);