test
parent
a9dc1e76ac
commit
2dd005c19c
|
@ -1139,8 +1139,8 @@ class VariantSelects extends HTMLElement {
|
|||
console.log("galleryImage.getAttribute('thumbnail-alt')", galleryImage.getAttribute('thumbnail-alt'));
|
||||
if (galleryImage.getAttribute('thumbnail-alt') === this.currentVariant.featured_image.alt) {
|
||||
|
||||
// check if galleryImage is a video
|
||||
if (!galleryImage.classList.contains('thumbnail-list__item--video')) {
|
||||
// check if galleryImage is a video nested
|
||||
if (!galleryImage.querySelector('video')) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue