diff --git a/src/views.js b/src/views.js index ddd5faa..31a39f6 100644 --- a/src/views.js +++ b/src/views.js @@ -356,9 +356,14 @@ function _makeTopsongRow(s, num, subtitle, list, idx) { // ─── ARTIST DETAIL ─── export async function loadArtistDetail(artist) { - if (S.cfg.showRomaji) await fetchRomajiIndex().catch(() => {}); - document.getElementById('artist-detail-name').textContent = dispArtistById(artist.id, artist.name); + const nameEl = document.getElementById('artist-detail-name'); + nameEl.textContent = artist.name; document.getElementById('artist-back-btn').onclick = () => _navGoBack(); + if (S.cfg.showRomaji) { + fetchRomajiIndex() + .then(() => { nameEl.textContent = dispArtistById(artist.id, artist.name); }) + .catch(() => {}); + } const hero = document.getElementById('artist-detail-hero'); const bioEl = document.getElementById('artist-bio-section');