summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/lib/utils/image_utility.js
blob: 2977ec821cbb6832dd711d201ba7d231a61c0933 (plain)
1
2
3
4
5
/* eslint-disable import/prefer-default-export */

export function isImageLoaded(element) {
  return element.complete && element.naturalHeight !== 0;
}