From 151e2e56d9a0bdeccca364c589bdbb5ca5d3617a Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Tue, 19 Feb 2019 01:05:44 +0100 Subject: [PATCH] typo --- platypush/backend/http/static/js/media.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/backend/http/static/js/media.js b/platypush/backend/http/static/js/media.js index 6ee5694c..4ff4a588 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);