Skip to content

Commit

Permalink
fix(FEC-8261): OTT Poster is now an object - we tried to load [Object…
Browse files Browse the repository at this point in the history
… Object] url (#127)

Fix wrong curly bracket place.
  • Loading branch information
Dan Ziv authored May 27, 2018
1 parent 1b05a47 commit 64851b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ott/poster.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ function addKalturaPoster(playerSources: PKSourcesConfigObject, mediaSources: Pr
const regex = /.*\/thumbnail\/.*(?:width|height)\/\d+\/(?:height|width)\/\d+/;
if (regex.test(playerPoster)) {
playerSources.poster = setPlayerDimensionsOnPoster(playerPoster, playerWidth, playerHeight);
} else if (Array.isArray(playerPoster)) {
playerSources.poster = selectPosterByPlayerDimensions(playerPoster, playerWidth, playerHeight);
}
} else if (Array.isArray(playerPoster)) {
playerSources.poster = selectPosterByPlayerDimensions(playerPoster, playerWidth, playerHeight);
}
}

Expand Down

0 comments on commit 64851b2

Please sign in to comment.