mirror of
https://github.com/GCMatters/hermes.git
synced 2026-02-04 21:50:12 +01:00
fix auth.ts
This commit is contained in:
@@ -38,9 +38,6 @@ function setupAuthUI() {
|
||||
logoutBtn.classList.toggle('d-none', !isAuthenticated);
|
||||
logoutBtn.addEventListener('click', logoutUser);
|
||||
}
|
||||
// Hide all auth buttons initially until DOM loads
|
||||
const hiddenBeforeLoad = document.querySelectorAll('.hidden-before-load');
|
||||
hiddenBeforeLoad.forEach(el => el.classList.remove('hidden-before-load'));
|
||||
}
|
||||
// Initialize on load
|
||||
document.addEventListener('DOMContentLoaded', setupAuthUI);
|
||||
|
||||
Reference in New Issue
Block a user