From 636e8389e9c38e095780e6f5cc003872986759eb Mon Sep 17 00:00:00 2001 From: Guilherme Cassolato Date: Mon, 27 Nov 2023 13:37:09 +0100 Subject: [PATCH] fix: use variable instead of constant to control propagation of click event --- media/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media/main.js b/media/main.js index 96f17c3..68162f3 100644 --- a/media/main.js +++ b/media/main.js @@ -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');