Add alt tag to primary image

This commit is contained in:
Bill Thornton 2020-12-18 10:49:54 -05:00
parent 628b525f1a
commit f0792e940b

View File

@ -597,7 +597,9 @@ function renderPrimaryImage(page, item, apiClient) {
tag: item.ImageTags.Primary tag: item.ImageTags.Primary
}); });
page.querySelector('#primaryImage').src = imageUrl; const imageElem = page.querySelector('#primaryImage');
imageElem.src = imageUrl;
imageElem.alt = item.Name;
page.querySelector('.primaryImageWrapper')?.classList.remove('hide'); page.querySelector('.primaryImageWrapper')?.classList.remove('hide');
} }
} }