mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Add format=json for reddit comments
This commit is contained in:
parent
3ec684ae71
commit
454b1662b7
2 changed files with 11 additions and 3 deletions
|
@ -191,7 +191,7 @@ function get_youtube_replies(target) {
|
|||
}
|
||||
|
||||
function get_reddit_comments() {
|
||||
var url = "/api/v1/comments/<%= video.id %>?source=reddit";
|
||||
var url = "/api/v1/comments/<%= video.id %>?source=reddit&format=html";
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.responseType = "json";
|
||||
xhr.timeout = 20000;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue