test
parent
fb4a12adab
commit
a45e7d0eee
|
@ -1147,9 +1147,9 @@ class VariantSelects extends HTMLElement {
|
|||
|
||||
console.log('galleryImage.dataset', galleryImage.dataset);
|
||||
|
||||
const target = galleryImage.dataset.target; // "template--22806669590804__main-38794319626516"
|
||||
const targetId = target.split('__')[1]; // "main-38794319626516"
|
||||
const targetIdSplit = targetId.split('-')[1]; // "38794319626516"
|
||||
const target = galleryImage.dataset.mediaId; // "template--22806669590804__main-38794319626516"
|
||||
//const targetId = target.split('__')[1]; // "main-38794319626516"
|
||||
//const targetIdSplit = targetId.split('-')[1]; // "38794319626516"
|
||||
|
||||
setTimeout(() => {
|
||||
//mediaGallery.setActiveMedia(`${this.dataset.section}-${targetIdSplit}`, true);
|
||||
|
|
Loading…
Reference in New Issue