debian-mirror-gitlab/app/assets/javascripts/lib/utils/image_utility.js
2020-11-24 15:15:51 +05:30

3 lines
101 B
JavaScript

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