Commit 6f431df9 by Valera Rozuvan

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.
parent fb0efd1b
......@@ -123,6 +123,10 @@ function () {
this.videoCaption.hideCaptions(this.hide_captions);
if (!this.youtubeId('1.0')) {
return;
}
$.ajaxWithPrefix({
url: _this.videoCaption.captionURL(),
notifyOnError: false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment