Tweak de-blur photo logic
This commit is contained in:
parent
50ce31f6ac
commit
3bc678185e
|
@ -131,7 +131,11 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||
// Reveal all blurred images on click.
|
||||
(document.querySelectorAll(".blurred-explicit") || []).forEach(node => {
|
||||
node.addEventListener("click", e => {
|
||||
node.classList.remove("blurred-explicit");
|
||||
if (node.classList.contains("blurred-explicit")) {
|
||||
node.classList.remove("blurred-explicit");
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user