Fix privacy button tap
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user