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 => {
|
||||
if (node.classList.contains("blurred-explicit")) {
|
||||
node.classList.remove("blurred-explicit");
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
if (node.tagName.toLowerCase() !== "video") {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user