aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/static/js/comments.js
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2021-12-16 17:46:16 -0500
committerJesús <heckyel@hyperbola.info>2021-12-16 17:46:16 -0500
commitdf7e41b61a83320cd2b2ffb9a4a45234162672af (patch)
treed16e3b953fda8b10618478d793dd0096d98b8c35 /youtube/static/js/comments.js
parentdd498e63d96c5b4465e3f7c65f81433aa28f2f10 (diff)
downloadyt-local-df7e41b61a83320cd2b2ffb9a4a45234162672af.tar.lz
yt-local-df7e41b61a83320cd2b2ffb9a4a45234162672af.tar.xz
yt-local-df7e41b61a83320cd2b2ffb9a4a45234162672af.zip
[frontend]: fix global scope, change var to let
Diffstat (limited to 'youtube/static/js/comments.js')
-rw-r--r--youtube/static/js/comments.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube/static/js/comments.js b/youtube/static/js/comments.js
index fdd089f..14ba0c0 100644
--- a/youtube/static/js/comments.js
+++ b/youtube/static/js/comments.js
@@ -1,9 +1,9 @@
function onClickReplies(e) {
- var details = e.target.parentElement;
+ let details = e.target.parentElement;
// e.preventDefault();
console.log("loading replies ..");
doXhr(details.getAttribute("data-src") + "&slim=1", (html) => {
- var div = details.querySelector(".comment_page");
+ let div = details.querySelector(".comment_page");
div.innerHTML = html;
});
details.removeEventListener('click', onClickReplies);