debian-mirror-gitlab/app/assets/javascripts/version_check_image.js
2021-02-22 17:27:13 +05:30

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());
}
}