Improve zap login prompts and wallet pane handling

This commit is contained in:
thePR0M3TH3AN committed 2025-10-18 14:33:13 -04:00
1 parent a98705bb2f
commit d7b0faffa2
5 files changed
+127 -23

No files matched your search

+9
View File
@@ -4016,6 +4016,15 @@ export class ProfileModalController {
return;
}
const parentElement = modalRoot.parentElement;
if (parentElement) {
if (parentElement.lastElementChild !== modalRoot) {
parentElement.appendChild(modalRoot);
}
} else if (typeof document !== "undefined" && document.body) {
document.body.appendChild(modalRoot);
}
modalRoot.classList.remove("hidden");
modalRoot.setAttribute("aria-hidden", "false");
this.setGlobalModalState("profile", true);