fix: settings logout via inline onclick — bypasses ES module race

- 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
This commit is contained in:
2026-07-24 09:54:42 -04:00
parent 24b56ac0e7
commit 317065f986
2 changed files with 2 additions and 7 deletions
+1 -6
View File
@@ -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)
}