diff --git a/platypush/backend/http/static/js/media.js b/platypush/backend/http/static/js/media.js index 6ee5694c66..4ff4a58804 100644 --- a/platypush/backend/http/static/js/media.js +++ b/platypush/backend/http/static/js/media.js @@ -339,7 +339,7 @@ $(document).ready(function() { if (subtitlesConf) { populateSubtitlesModal(resource).then((subs) => { if ('language' in subtitlesConf) { - if (subs && sub.length) { + if (subs && subs.length) { downloadSubtitles(subs[0].SubDownloadLink, resource).then((subtitles) => { _play(resource, subtitles).finally(onVideoReady); resolve(resource, subtitles);