summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/url-spec.js3
-rw-r--r--src/util/wiki-data.js4
2 files changed, 5 insertions, 2 deletions
diff --git a/src/url-spec.js b/src/url-spec.js
index 22b3bc8..a36bb0e 100644
--- a/src/url-spec.js
+++ b/src/url-spec.js
@@ -75,7 +75,8 @@ const urlSpec = {
albumBanner: 'album-art/<>/banner.jpg',
trackCover: 'album-art/<>/<>.jpg',
artistAvatar: 'artist-avatar/<>.jpg',
- flashArt: 'flash-art/<>.jpg'
+ flashArt: 'flash-art/<>.jpg',
+ flashArtGif: 'flash-art/<>.gif' // Hack! Sorry not sorry. ::::)
}
}
};
diff --git a/src/util/wiki-data.js b/src/util/wiki-data.js
index 3f24e6a..2f705f9 100644
--- a/src/util/wiki-data.js
+++ b/src/util/wiki-data.js
@@ -143,7 +143,9 @@ export function getArtistCommentary(artist, {justEverythingMan}) {
}
export function getFlashCover(flash, {to}) {
- return to('media.flashArt', flash.directory);
+ return (flash.jiff
+ ? to('media.flashArtGif', flash.directory)
+ : to('media.flashArt', flash.directory));
}
export function getFlashLink(flash) {