Fix privacy button tap

This commit is contained in:
2026-03-25 17:17:32 +01:00
parent c60a9bd861
commit f623a33943
2 changed files with 12 additions and 0 deletions

View File

@@ -110,6 +110,14 @@ openPrivacyButtons.forEach((button) => {
button.addEventListener("click", () => openPrivacyFlyover(button));
});
document.addEventListener("click", (event) => {
const privacyButton = event.target.closest("[data-open-privacy]");
if (!privacyButton) return;
event.preventDefault();
openPrivacyFlyover(privacyButton);
});
closePrivacyButtons.forEach((button) => {
button.addEventListener("click", closePrivacyFlyover);
});