mirror of
https://gitea.invidious.io/iv-org/invidious.git
synced 2024-08-15 00:53:41 +00:00
Add failure callback for comments
This commit is contained in:
parent
8c121528e9
commit
fff0a25c17
1 changed files with 3 additions and 0 deletions
|
@ -49,6 +49,7 @@ var options = {
|
|||
],
|
||||
},
|
||||
};
|
||||
|
||||
var player = videojs('player', options, function() {
|
||||
this.hotkeys({
|
||||
volumeStep: 0.1,
|
||||
|
@ -157,6 +158,8 @@ fetch("/comments/<%= video.id %>?source=reddit")
|
|||
permalink: jsonResponse.permalink,
|
||||
content_html: jsonResponse.content_html
|
||||
})
|
||||
}, function(response){
|
||||
comments.innerHTML = "";
|
||||
});
|
||||
|
||||
String.prototype.supplant = function (o) {
|
||||
|
|
Loading…
Reference in a new issue