Skip to content

Invidious is an alternative front-end to YouTube

Fix typo in XHR

Omar Rothdebe5cbea9fe
diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr
index ca3003c8..2095ec73 100644
--- a/src/invidious/views/watch.ecr
+++ b/src/invidious/views/watch.ecr
@@ -231,7 +231,7 @@ function load_comments(target) {
xhr.onreadystatechange = function() {
if (xhr.readyState == 4) {
- if (xhr.statusCode == 200) {
+ if (xhr.status == 200) {
body.innerHTML = xhr.response.content_html;
} else {
body.innerHTML = fallback;