pull/1/head
Jan Umbach 2024-05-27 19:50:04 +02:00
parent e5593d351d
commit 38357a8673
1 changed files with 1 additions and 0 deletions

View File

@ -1036,6 +1036,7 @@ class VariantSelects extends HTMLElement {
// only show the image with the alt tag that matches the variant title
document.querySelectorAll('[thumbnail-alt]').forEach((thumbnail) => {
console.log(thumbnail.getAttribute('thumbnail-alt'));
if (thumbnail.getAttribute('thumbnail-alt') === this.currentVariant.featured_image.alt) {
thumbnail.style.display = 'block';
} else {