debian-mirror-gitlab/app/assets/javascripts/lib/utils/image_utility.js
2018-03-17 18:26:18 +05:30

5 lines
152 B
JavaScript

/* eslint-disable import/prefer-default-export */
export function isImageLoaded(element) {
return element.complete && element.naturalHeight !== 0;
}