« get me outta code hell

minor tweaks - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/upd8.js
diff options
context:
space:
mode:
author(quasar) nebula <towerofnix@gmail.com>2020-12-09 17:28:00 -0400
committer(quasar) nebula <towerofnix@gmail.com>2020-12-09 17:28:00 -0400
commit1efc241820044a870529847ab1e456979c4fd375 (patch)
tree17a3ce7044ef5ec7279cf54257084e2089c64b39 /upd8.js
parenta4e7a01c2781b2e21b797da112692ee77a3acc56 (diff)
minor tweaks
Diffstat (limited to 'upd8.js')
-rw-r--r--upd8.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/upd8.js b/upd8.js
index fcb268b..5f49bdd 100644
--- a/upd8.js
+++ b/upd8.js
@@ -1112,7 +1112,7 @@ function getGridHTML({
     entries,
     srcFn,
     hrefFn,
-    altFn,
+    altFn = () => '',
     details = false,
     lazy = true
 }) {
@@ -1137,7 +1137,6 @@ function getAlbumGridHTML(props) {
     return getGridHTML({
         srcFn: getAlbumCover,
         hrefFn: album => `${C.ALBUM_DIRECTORY}/${album.directory}/`,
-        altFn: () => 'album cover',
         ...props
     });
 }
@@ -1146,7 +1145,6 @@ function getAlbumGridHTML(props) {
     return getGridHTML({
         srcFn: getAlbumCover,
         hrefFn: album => `${C.ALBUM_DIRECTORY}/${album.directory}/`,
-        altFn: () => 'album cover',
         ...props
     });
 }
@@ -2551,10 +2549,7 @@ function writeTagPage(tag) {
                             : getAlbumCover(thing)),
                         hrefFn: thing => (thing.album
                             ? `${C.TRACK_DIRECTORY}/${thing.directory}/`
-                            : `${C.ALBUM_DIRECTORY}/${thing.directory}`),
-                        altFn: thing => (thing.album
-                            ? 'track cover'
-                            : 'album cover')
+                            : `${C.ALBUM_DIRECTORY}/${thing.directory}`)
                     })}
                 </div>
             `