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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user