Fixed bug dealing with empty subtitles Url string.
Now when subs parameter is empty or the YouTube IDs are not specified, captions will not try to fetch non-existent file.
This commit is contained in:
@@ -123,6 +123,10 @@ function () {
|
||||
|
||||
this.videoCaption.hideCaptions(this.hide_captions);
|
||||
|
||||
if (!this.youtubeId('1.0')) {
|
||||
return;
|
||||
}
|
||||
|
||||
$.ajaxWithPrefix({
|
||||
url: _this.videoCaption.captionURL(),
|
||||
notifyOnError: false,
|
||||
|
||||
Reference in New Issue
Block a user