diff options
author | (quasar) nebula <towerofnix@gmail.com> | 2020-11-12 17:14:01 -0400 |
---|---|---|
committer | (quasar) nebula <towerofnix@gmail.com> | 2020-11-12 17:14:01 -0400 |
commit | c4519949ccea7bab5f2f8f92203a6ae66a4b115a (patch) | |
tree | f513be2d693a6b3678c407b03beb2bbc16e7bdd3 | |
parent | 63e4132e7d548619b81a4c0b57a172f5b69854d7 (diff) |
simplify flash reference list code
-rw-r--r-- | upd8.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/upd8.js b/upd8.js index b6cee21b..7975e6cd 100644 --- a/upd8.js +++ b/upd8.js @@ -1826,12 +1826,10 @@ async function writeFlashPage(flash) { <ul> ${flash.tracks.map(ref => { const track = getLinkedTrack(ref); - const neighm = ref.match(/(.*?\S):/) || [ref, ref]; if (track) { - const neeeighm = neighm[1].replace('$$$$', ':'); return fixWS` <li> - <a href="${C.TRACK_DIRECTORY}/${track.directory}/" style="${getThemeString(track)}">${neeeighm}</a> + <a href="${C.TRACK_DIRECTORY}/${track.directory}/" style="${getThemeString(track)}">${track.name}</a> <span class="by">by ${getArtistString(track.artists)}</span> </li> `; |