From 317065f986dbe624deeb028e1c8d34ede3ca6822 Mon Sep 17 00:00:00 2001 From: bruno Date: Fri, 24 Jul 2026 09:54:42 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20settings=20logout=20via=20inline=20oncli?= =?UTF-8?q?ck=20=E2=80=94=20bypasses=20ES=20module=20race?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - profile-logout now handles logout directly via onclick attribute in HTML - Calls window.handleLogout() (auth.js global) or direct fetch fallback - Removed broken JS handler from config.js to avoid double execution --- frontend/index.html | 2 +- frontend/js/config.js | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index e7c4587..4922b43 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -2006,7 +2006,7 @@ - + diff --git a/frontend/js/config.js b/frontend/js/config.js index 9d36df4..f3d5d74 100644 --- a/frontend/js/config.js +++ b/frontend/js/config.js @@ -1572,10 +1572,5 @@ function initProfile() { } catch(e) {} }); - // Logout button — calls AuthManager.logout() directly - if (logoutBtn) { - logoutBtn.addEventListener('click', function() { - AuthManager.logout(); - }); - } + // Logout button — handled inline in index.html (onclick) }