summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/lib/utils/image_utility.js
blob: af531f9f8304b359c3c795d1c0b2de8e2845f5f6 (plain)
1
2
3
export function isImageLoaded(element) {
  return element.complete && element.naturalHeight !== 0;
}