diff --git a/index.html b/index.html index 028d856..9cf8929 100644 --- a/index.html +++ b/index.html @@ -4501,6 +4501,64 @@ +
a.id === artistId); + return this.getBlockedArtists().some((a) => a.id == artistId); }, blockArtist(artist) { @@ -2560,7 +2560,7 @@ export const contentBlockingSettings = { }, unblockArtist(artistId) { - const blocked = this.getBlockedArtists().filter((a) => a.id !== artistId); + const blocked = this.getBlockedArtists().filter((a) => a.id != artistId); this.setBlockedArtists(blocked); }, @@ -2580,13 +2580,13 @@ export const contentBlockingSettings = { isTrackBlocked(trackId) { if (!trackId) return false; - return this.getBlockedTracks().some((t) => t.id === trackId); + return this.getBlockedTracks().some((t) => t.id == trackId); }, blockTrack(track) { if (!track || !track.id) return; const blocked = this.getBlockedTracks(); - if (!blocked.some((t) => t.id === track.id)) { + if (!blocked.some((t) => t.id == track.id)) { blocked.push({ id: track.id, title: track.title || 'Unknown Track', @@ -2598,7 +2598,7 @@ export const contentBlockingSettings = { }, unblockTrack(trackId) { - const blocked = this.getBlockedTracks().filter((t) => t.id !== trackId); + const blocked = this.getBlockedTracks().filter((t) => t.id != trackId); this.setBlockedTracks(blocked); }, @@ -2618,13 +2618,13 @@ export const contentBlockingSettings = { isAlbumBlocked(albumId) { if (!albumId) return false; - return this.getBlockedAlbums().some((a) => a.id === albumId); + return this.getBlockedAlbums().some((a) => a.id == albumId); }, blockAlbum(album) { if (!album || !album.id) return; const blocked = this.getBlockedAlbums(); - if (!blocked.some((a) => a.id === album.id)) { + if (!blocked.some((a) => a.id == album.id)) { blocked.push({ id: album.id, title: album.title || 'Unknown Album', @@ -2636,7 +2636,7 @@ export const contentBlockingSettings = { }, unblockAlbum(albumId) { - const blocked = this.getBlockedAlbums().filter((a) => a.id !== albumId); + const blocked = this.getBlockedAlbums().filter((a) => a.id != albumId); this.setBlockedAlbums(blocked); },