From d3cecf0a68e262d830c811257a413c73f155a432 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 24 Mar 2021 21:26:15 -0300 Subject: replace unnecessary track.album expressions --- upd8.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/upd8.js b/upd8.js index 77759d02..85dfa236 100755 --- a/upd8.js +++ b/upd8.js @@ -2808,7 +2808,7 @@ function writeTrackPage(track) { const tracksReferenced = track.references; const otherReleases = track.otherReleases; - const listTag = getAlbumListTag(track.album); + const listTag = getAlbumListTag(album); let flashesThatFeature; if (wikiInfo.features.flashesAndGames) { @@ -2855,7 +2855,7 @@ function writeTrackPage(track) { return ({strings, writePage}) => writePage('track', track.directory, ({to}) => ({ title: strings('trackPage.title', {track: track.name}), - stylesheet: getAlbumStylesheet(track.album, {to}), + stylesheet: getAlbumStylesheet(album, {to}), theme: getThemeString(track, [ `--album-directory: ${album.directory}`, `--track-directory: ${track.directory}` @@ -2863,7 +2863,7 @@ function writeTrackPage(track) { banner: album.bannerArtists && { classes: ['dim'], - src: to.albumBanner(track.album.directory), + src: to.albumBanner(album.directory), alt: strings('misc.alt.albumBanner'), position: 'bottom' }, -- cgit 1.3.0-6-gf8a5