« get me outta code hell

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:
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 fcb268bc..5f49bddd 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>
             `