From 7e752eece4a711a9ec95bbcc115a34922749bf3e Mon Sep 17 00:00:00 2001 From: ChunkyProgrammer <78101139+ChunkyProgrammer@users.noreply.github.com> Date: Tue, 13 Aug 2024 12:49:04 -0400 Subject: [PATCH] Add missing semicolons, remove unused code --- assets/js/comments.js | 8 ++++---- assets/js/community.js | 4 ++-- src/invidious/views/comments_no_js.ecr | 1 - src/invidious/views/community.ecr | 1 - src/invidious/views/post.ecr | 1 - src/invidious/views/watch.ecr | 1 - 6 files changed, 6 insertions(+), 10 deletions(-) diff --git a/assets/js/comments.js b/assets/js/comments.js index 86ec1543..fc0d93d7 100644 --- a/assets/js/comments.js +++ b/assets/js/comments.js @@ -16,7 +16,7 @@ function updateReplyLinks() { replyLink.removeAttribute("target"); }); } -updateReplyLinks() +updateReplyLinks(); function toggle_comments(event) { var target = event.target; @@ -112,7 +112,7 @@ function get_youtube_comments() { }) }); comments.innerHTML = commentInnerHtml; - updateReplyLinks() + updateReplyLinks(); comments.children[0].children[0].children[0].onclick = toggle_comments; if (video_data.support_reddit) { comments.children[0].children[1].children[0].onclick = swap_comments; @@ -152,7 +152,7 @@ function get_youtube_replies(target, load_more, load_replies) { body = body.parentNode.parentNode; body.removeChild(body.lastElementChild); body.insertAdjacentHTML('beforeend', response.contentHtml); - updateReplyLinks() + updateReplyLinks(); } else { body.removeChild(body.lastElementChild); @@ -171,7 +171,7 @@ function get_youtube_replies(target, load_more, load_replies) { body.appendChild(p); body.appendChild(div); - updateReplyLinks() + updateReplyLinks(); } }, onNon200: function (xhr) { diff --git a/assets/js/community.js b/assets/js/community.js index f076af9a..347c5a9a 100644 --- a/assets/js/community.js +++ b/assets/js/community.js @@ -12,7 +12,7 @@ function updateReplyLinks() { replyLink.removeAttribute("target"); }); } -updateReplyLinks() +updateReplyLinks(); function get_youtube_replies(target) { var continuation = target.getAttribute('data-continuation'); @@ -33,7 +33,7 @@ function get_youtube_replies(target) { body = body.parentNode.parentNode; body.removeChild(body.lastElementChild); body.insertAdjacentHTML('beforeend', response.contentHtml); - updateReplyLinks() + updateReplyLinks(); }, onNon200: function (xhr) { body.innerHTML = fallback; diff --git a/src/invidious/views/comments_no_js.ecr b/src/invidious/views/comments_no_js.ecr index f9c25432..820009e9 100644 --- a/src/invidious/views/comments_no_js.ecr +++ b/src/invidious/views/comments_no_js.ecr @@ -1,6 +1,5 @@ <% content_for "header" do %>