From fff0a25c1724314fe993a2a3d538cacf843045eb Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Fri, 20 Jul 2018 14:50:55 -0500 Subject: [PATCH] Add failure callback for comments --- src/invidious/views/watch.ecr | 3 +++ 1 file changed, 3 insertions(+) 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) {