From 660d6fd951796e920392adc032bba43c250ecd41 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 4 Apr 2021 16:01:33 -0300 Subject: cover art in info card --- static/client.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'static/client.js') diff --git a/static/client.js b/static/client.js index aae0919..60bf62b 100644 --- a/static/client.js +++ b/static/client.js @@ -78,7 +78,7 @@ function getFlashListAndIndex() { // TODO: This should also use urlSpec. function fetchData(type, directory) { - return fetch(rebase(`data/${type}/${directory}/data.json`, 'rebaseData')) + return fetch(rebase(`${type}/${directory}/data.json`, 'rebaseData')) .then(res => res.json()); } @@ -225,6 +225,9 @@ const infoCard = (() => { const albumLink = container.querySelector('.info-card-album a'); link(albumLink, 'album', data.links.album); + + const img = container.querySelector('.info-card-art'); + img.src = rebase(data.cover.path, 'rebaseMedia'); }); } -- cgit 1.3.0-6-gf8a5