diff --git a/js/video_player.js b/js/video_player.js index 152a1b0974..e91813b5f1 100644 --- a/js/video_player.js +++ b/js/video_player.js @@ -80,12 +80,12 @@ function change_video_speed(speed, youtube_id) { function caption_at(index) { if (captions==0) - return " "; + return ""; text_array=captions.text if ((index>=text_array.length) || (index < 0)) - return " "; + return ""; return text_array[index]; }