fix(ai): prevent race condition in login modal initialization (agent)

Removes a premature call to `initializeLoginModalController` in `ApplicationBootstrap` which was attempting to initialize the login modal before the DOM was fully hydrated, causing a "modal container not found" warning during startup. The modal is already correctly initialized later in `js/index.js` after markup loading completes.
This commit is contained in:
google-labs-jules[bot] committed 2026-01-18 18:21:41 +00:00
1 parent 3de038dc08
commit 69e5a45af1
3 files changed
+518 -629

No files matched your search

-2
View File
@@ -395,8 +395,6 @@ export default class ApplicationBootstrap {
app.loginModalController = null;
app.currentUserNpub = null;
app.initializeLoginModalController({ logIfMissing: true });
app.profileButton = doc?.getElementById("profileButton") || null;
app.profileAvatar = doc?.getElementById("profileAvatar") || null;