Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

check for dup box art wasn't executing when a custom image was used #55

Merged
merged 1 commit into from

1 participant

@Randgalt
Collaborator

No description provided.

@Randgalt Randgalt merged commit 4b711cb into Netflix:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 9 additions and 9 deletions.
  1. +9 −9 js/nf.js
View
18 js/nf.js
@@ -162,16 +162,16 @@ function buildRepoContent()
boxArtOverride = thisRepo.metadata.boxArt;
if (boxArtOverride) {
imageFileName = boxArtOverride;
- } else {
- while ( imageFileName === previousImageFileName )
- {
- imageFileName = 'box-art-' + boxArtIndex + '.jpg'
- boxArtIndex++;
- if (boxArtIndex > 8) {
- boxArtIndex = 0;
- }
- }
}
+ while ( imageFileName === previousImageFileName )
+ {
+ imageFileName = 'box-art-' + boxArtIndex + '.jpg'
+ boxArtIndex++;
+ if (boxArtIndex > 8) {
+ boxArtIndex = 0;
+ }
+ }
+
imageUrl = 'assets/' + imageFileName;
previousImageFileName = imageFileName;
Something went wrong with that request. Please try again.