gitlab-org--gitlab-foss/app/assets/javascripts/version_check_image.js

6 lines
217 B
JavaScript

export default class VersionCheckImage {
static bindErrorEvent(imageElement) {
// eslint-disable-next-line @gitlab/no-global-event-off
imageElement.off('error').on('error', () => imageElement.hide());
}
}