From 99f524b73e25797d780f0da7ef26492c4f4e6310 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 %> Invidious - <% end %> diff --git a/src/invidious/views/community.ecr b/src/invidious/views/community.ecr index d79580cd..555cc60f 100644 --- a/src/invidious/views/community.ecr +++ b/src/invidious/views/community.ecr @@ -13,7 +13,6 @@ <% content_for "header" do %> <%= author %> - Invidious - <% end %> <%= rendered "components/channel_info" %> diff --git a/src/invidious/views/post.ecr b/src/invidious/views/post.ecr index d4133ffe..4e6ebabc 100644 --- a/src/invidious/views/post.ecr +++ b/src/invidious/views/post.ecr @@ -1,6 +1,5 @@ <% content_for "header" do %> Invidious - <% end %>
diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr index 54922ffd..45c58a16 100644 --- a/src/invidious/views/watch.ecr +++ b/src/invidious/views/watch.ecr @@ -42,7 +42,6 @@ we're going to need to do it here in order to allow for translations. content: "<%= translate(locale, "Show less") %>" } - <% end %>