« get me outta code hell

replace unnecessary track.album expressions - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <towerofnix@gmail.com>2021-03-24 21:26:15 -0300
committer(quasar) nebula <towerofnix@gmail.com>2021-03-24 21:26:15 -0300
commitd3cecf0a68e262d830c811257a413c73f155a432 (patch)
tree6aa9af09aa71c43b47a692e0549c6665201765fc
parent1dce32b53f054c84029ee6148ce64ab15d914d75 (diff)
replace unnecessary track.album expressions
-rwxr-xr-xupd8.js6
1 files 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'
         },