fix: album cards use romaji index for album name display via _albumRomajiMap
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
52f5385988
commit
45cb62198e
2 files changed
+12
-4
No files matched your search
+4
-1
@@ -281,7 +281,10 @@ export async function loadAlbumRow(id, method, extra) {
|
||||
if(!c) return;
|
||||
c.innerHTML = '<div class="spinner"></div>';
|
||||
try {
|
||||
const r = await api(method, extra);
|
||||
const [r] = await Promise.all([
|
||||
api(method, extra),
|
||||
S.cfg.showRomaji ? fetchRomajiIndex().catch(() => {}) : Promise.resolve(),
|
||||
]);
|
||||
c.innerHTML = '';
|
||||
(r.albumList2?.album || []).forEach(a => c.appendChild(makeAlbumCard(a)));
|
||||
} catch(e) { c.innerHTML = `<div style="color:var(--text3);font-size:13px;padding:16px">${e.message}</div>`; }
|
||||
|
||||
Reference in new issue
Block a user