Permalink
Browse files

Merge pull request #55 from Randgalt/master

check for dup box art wasn't executing when a custom image was used
  • Loading branch information...
2 parents d1a23fb + 0d43958 commit 4b711cb86b1395e2084b897517117b9140b0aa84 @Randgalt Randgalt committed Mar 28, 2013
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;

0 comments on commit 4b711cb

Please sign in to comment.