test
parent
733f8686d3
commit
e37450eaab
|
@ -1047,6 +1047,15 @@ class VariantSelects extends HTMLElement {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
document.querySelectorAll('[thumbnail-alt-mobile]').forEach((thumbnail) => {
|
||||||
|
console.log(thumbnail.getAttribute('thumbnail-alt-mobile'));
|
||||||
|
if (thumbnail.getAttribute('thumbnail-alt-mobile') === this.currentVariant.featured_image.alt) {
|
||||||
|
thumbnail.style.display = 'block';
|
||||||
|
} else {
|
||||||
|
thumbnail.style.display = 'none';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// show all thumbnails
|
// show all thumbnails
|
||||||
|
|
Loading…
Reference in New Issue