Skip to content

Commit

Permalink
fix: use variable instead of constant to control propagation of click…
Browse files Browse the repository at this point in the history
… event
  • Loading branch information
guicassolato committed Nov 27, 2023
1 parent ed174ca commit 636e838
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion media/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
};

document.body.addEventListener('click', event => {
const node = event && event.target;
let node = event && event.target;
while (node) {
if (node.href) {
let href = node.getAttribute('href');
Expand Down

0 comments on commit 636e838

Please sign in to comment.