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

6 lines
152 B
JavaScript
Raw Normal View History

2018-03-17 18:26:18 +05:30
/* eslint-disable import/prefer-default-export */
export function isImageLoaded(element) {
return element.complete && element.naturalHeight !== 0;
}