Skip to content

Commit 95ac9fd

Browse files
author
Jon
committed
Add comment
1 parent 82a3f27 commit 95ac9fd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/components/Thumbnail.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ export default {
5656
.done(function(response) {
5757
let data = response;
5858
if (_.isArray(data.thumbnails) && data.thumbnails.length > 0) {
59+
// This sorting works to put 'small' before 'large', should also work for 'medium',
60+
// but falls back to at least using a thumbnail if one exists for the frame in the archive.
5961
let thumbnails = _.orderBy(data.thumbnails, ['size'], ['desc']);
6062
that.thumbnailSmallUrl = thumbnails[0].url || '';
6163
that.thumbnailLargeUrl = thumbnails[1].url || '';

0 commit comments

Comments
 (0)