From 93964086ea5297752eb54882432278ad5b841d22 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 6 Oct 2014 14:45:03 +0200 Subject: [PATCH] subtitles is undefined --- static/js/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/utils.js b/static/js/utils.js index 15e47342..f3353fac 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -1769,7 +1769,7 @@ pandora.getVideoOptions = function(data) { options.subtitlesLayer ? data.layers[options.subtitlesLayer].map(function(subtitle, i) { return { - 'in': i == 0 ? 0 : subtitles[i - 1].out, + 'in': i == 0 ? 0 : data.layers[options.subtitlesLayer][i - 1].out, out: subtitle['in'] }; }).concat(