Fix onclick handler for blurred videos on Chrome
This commit is contained in:
parent
a856b9d01b
commit
6c618d1a0c
|
@ -133,8 +133,10 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||||
node.addEventListener("click", e => {
|
node.addEventListener("click", e => {
|
||||||
if (node.classList.contains("blurred-explicit")) {
|
if (node.classList.contains("blurred-explicit")) {
|
||||||
node.classList.remove("blurred-explicit");
|
node.classList.remove("blurred-explicit");
|
||||||
e.preventDefault();
|
if (node.tagName.toLowerCase() !== "video") {
|
||||||
e.stopPropagation();
|
e.preventDefault();
|
||||||
|
e.stopPropagation();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user