Skip to content

Commit

Permalink
fix localized backdrops loaded on posters
Browse files Browse the repository at this point in the history
  • Loading branch information
nliautaud committed Oct 4, 2017
1 parent 3c0df1d commit 1d4d3e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function insertI18nImage( parent, sel, showInfo, callback ) {
return callback()

img = parent.querySelector( sel + ' img.real' )
img_type = img.parentNode.className == 'poster' ? 'poster' : 'backdrop'
img_type = img.parentNode.classList.contains( 'poster' ) ? 'poster' : 'backdrop'
img_path = showInfo[ img_type + '_path' ]

if ( !img_path ) {
Expand Down

0 comments on commit 1d4d3e1

Please sign in to comment.