Developman
Results
1
comments of
Developman
Try this way instead: ``` --- linkEl = figureEl.children[0]; // element let img = linkEl.querySelector("img"); linkEl.setAttribute('data-size', img.naturalWidth + 'x' + img.naturalHeight); // create slide object item = { src: linkEl.getAttribute('href'),...