summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/version_check_image.js
blob: 4e00e0f11f791e8b289a4ce4820ee901c0c7d664 (plain)
1
2
3
4
5
6
export default class VersionCheckImage {
  static bindErrorEvent(imageElement) {
    // eslint-disable-next-line @gitlab/no-global-event-off
    imageElement.off('error').on('error', () => imageElement.hide());
  }
}