Only show close button on in page popup

This commit is contained in:
Ajay
2022-06-02 21:34:02 -04:00
parent 6b584f2111
commit 6202a4d0a3
2 changed files with 5 additions and 1 deletions

View File

@@ -140,6 +140,10 @@ async function runThePopup(messageListener?: MessageListener): Promise<void> {
});
});
if (window !== window.top) {
PageElements.sbCloseButton.classList.remove("hidden");
}
// Hide donate button if wanted (Safari, or user choice)
if (!showDonationLink()) {
PageElements.sbDonate.style.display = "none";