Skip to content

Invidious is an alternative front-end to YouTube

Fix handling for comments

Omar Rothae7b5fac7476
diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr
index 8c1c66b6..c5f4e2ba 100644
--- a/src/invidious/views/watch.ecr
+++ b/src/invidious/views/watch.ecr
@@ -367,7 +367,7 @@ function get_reddit_comments(timeouts = 0) {
});
} else {
<% if preferences && preferences.comments[1] == "youtube" %>
- get_youtube_comments();
+ get_youtube_comments(timeouts + 1);
<% else %>
comments.innerHTML = fallback;
<% end %>
@@ -428,7 +428,7 @@ function get_youtube_comments(timeouts = 0) {
}
} else {
<% if preferences && preferences.comments[1] == "youtube" %>
- get_youtube_comments();
+ get_youtube_comments(timeouts + 1);
<% else %>
comments.innerHTML = "";
<% end %>