mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-05 20:32:27 +00:00
Improve zap login prompts and wallet pane handling
This commit is contained in:
1 parent
a98705bb2f
commit
d7b0faffa2
5 files changed
+127
-23
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user