debian-mirror-gitlab/app/assets/javascripts/lib/utils/image_utility.js

4 lines
101 B
JavaScript
Raw Normal View History

2018-03-17 18:26:18 +05:30
export function isImageLoaded(element) {
return element.complete && element.naturalHeight !== 0;
}