| 1 2 3 4 5 6 7 | export default function setImageHeight(image, target) { image.addEventListener('load', e => { target.parentNode.style.height = `${e.target.height}px`; // eslint-disable-line target.parentNode.style.visibility = 'visible'; // eslint-disable-line }); } |