# All files / src/logic setImageHeight.js

0% Statements 0/3
100% Branches 0/0
0% Functions 0/2
0% Lines 0/3

    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
      });
    }