Tweak de-blur photo logic

This commit is contained in:
Noah Petherbridge 2023-09-19 18:54:47 -07:00
parent 50ce31f6ac
commit 3bc678185e

View File

@ -131,7 +131,11 @@ document.addEventListener('DOMContentLoaded', () => {
// Reveal all blurred images on click.
(document.querySelectorAll(".blurred-explicit") || []).forEach(node => {
node.addEventListener("click", e => {
if (node.classList.contains("blurred-explicit")) {
node.classList.remove("blurred-explicit");
e.preventDefault();
e.stopPropagation();
}
});
});
});