diff options
author | Jesús <heckyel@hyperbola.info> | 2021-12-16 17:46:16 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-12-16 17:46:16 -0500 |
commit | df7e41b61a83320cd2b2ffb9a4a45234162672af (patch) | |
tree | d16e3b953fda8b10618478d793dd0096d98b8c35 /youtube/static/js/comments.js | |
parent | dd498e63d96c5b4465e3f7c65f81433aa28f2f10 (diff) | |
download | yt-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.js | 4 |
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); |