« get me outta code hell

simplify flash reference list code - 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>2020-11-12 17:14:01 -0400
committer(quasar) nebula <towerofnix@gmail.com>2020-11-12 17:14:01 -0400
commitc4519949ccea7bab5f2f8f92203a6ae66a4b115a (patch)
treef513be2d693a6b3678c407b03beb2bbc16e7bdd3
parent63e4132e7d548619b81a4c0b57a172f5b69854d7 (diff)
simplify flash reference list code
-rw-r--r--upd8.js4
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>
                                 `;