diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-07-20 14:50:55 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-07-20 14:50:55 -0500 |
| commit | fff0a25c1724314fe993a2a3d538cacf843045eb (patch) | |
| tree | 4f167863e4abe164b327520c6d2e4ff7dee5cb89 | |
| parent | 8c121528e9e3ab42fd135622025e4cac7d617160 (diff) | |
| download | invidious-fff0a25c1724314fe993a2a3d538cacf843045eb.tar.gz invidious-fff0a25c1724314fe993a2a3d538cacf843045eb.tar.bz2 invidious-fff0a25c1724314fe993a2a3d538cacf843045eb.zip | |
Add failure callback for comments
| -rw-r--r-- | src/invidious/views/watch.ecr | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr index f0891dd9..7eb6c003 100644 --- a/src/invidious/views/watch.ecr +++ b/src/invidious/views/watch.ecr @@ -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) { |
