Permalink
Browse files

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

  • Loading branch information...
1 parent d1a23fb commit 0d43958b493434494f8d093c7dd6e57b233a4a6b @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 0d43958

Please sign in to comment.