fix js
All checks were successful
Build Docker / deploy (push) Successful in 51s
Build Docker / build (push) Successful in 34s

This commit is contained in:
2026-03-19 03:00:41 +03:00
parent 9a259cb637
commit 7bdf422c32

View File

@@ -6,7 +6,7 @@ document.addEventListener("DOMContentLoaded", () => {
.catch(() => { window.location.href = '/'; });
// Logout — удаляем cookie на бэкенде
document.getElementById('logoutForm').addEventListener('logout', async function(e) {
document.getElementById('logoutForm').addEventListener('click', async function(e) {
e.preventDefault();
await fetch('/api/logout', {
method: 'POST',