templates/website/includes/img-error.js.twig line 1

Open in your IDE?
  1. <script type="text/javascript" nonce="{{ nonceHash }}">
  2.     const imgError = (img, pathCreateCrop)=> {
  3.         if(pathCreateCrop){
  4.             img.onerror = () => { imgError(img) };
  5.             img.src = pathCreateCrop;
  6.         } else {
  7.             img.onerror = null;
  8.             img.classList.add('status--img-error');
  9.         }
  10.     }
  11. </script>