From 3ddcec921191ff55d13c7f5629ac3fdc3ab9e620 Mon Sep 17 00:00:00 2001 From: SamidyFR <168582143+SamidyFR@users.noreply.github.com> Date: Fri, 16 Jan 2026 21:32:45 +0000 Subject: [PATCH] style: auto-fix linting issues --- js/app.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/app.js b/js/app.js index 04fc4bf..002c73e 100644 --- a/js/app.js +++ b/js/app.js @@ -1016,17 +1016,17 @@ document.addEventListener('DOMContentLoaded', async () => { const track = contextMenu._contextTrack; const albumItem = contextMenu.querySelector('[data-action="go-to-album"]'); const artistItem = contextMenu.querySelector('[data-action="go-to-artist"]'); - + if (track) { if (albumItem) { let label = 'Album'; const albumType = track.album?.type?.toUpperCase(); const trackCount = track.album?.numberOfTracks; - + if (albumType === 'SINGLE' || trackCount === 1) label = 'Single'; else if (albumType === 'EP') label = 'EP'; else if (trackCount && trackCount <= 6) label = 'EP'; - + albumItem.textContent = `Go to ${label}`; albumItem.style.display = track.album ? 'block' : 'none'; } @@ -1039,7 +1039,7 @@ document.addEventListener('DOMContentLoaded', async () => { } }); }); - + observer.observe(contextMenu, { attributes: true }); } });