dont fail if no videopoints exist
This commit is contained in:
parent
e7292a5989
commit
5466247848
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ pandora.ui.item = function() {
|
|||
if (isVideoView && result.data.duration) {
|
||||
var videoPoints = pandora.user.ui.videoPoints[item], set = {};
|
||||
['in', 'out', 'position'].forEach(point => {
|
||||
if (videoPoints[point] > result.data.duration) {
|
||||
if (videoPoints && videoPoints[point] > result.data.duration) {
|
||||
set[point] = result.data.duration;
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue