From f27044af728f95c0618bbd3ef8fe5699e3add0ef Mon Sep 17 00:00:00 2001 From: Siril Teja Dukkipati Date: Wed, 27 Nov 2024 13:42:17 -0500 Subject: [PATCH] Update figure.liquid --- _includes/figure.liquid | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_includes/figure.liquid b/_includes/figure.liquid index 7c108541..a071c3f0 100644 --- a/_includes/figure.liquid +++ b/_includes/figure.liquid @@ -68,7 +68,7 @@ {% elsif site.lazy_loading_images %} loading="lazy" {% endif %} - onerror="this.onerror=null; $('.responsive-img-srcset').remove();" + onerror="this.onerror=null; if(document.querySelector('.responsive-img-srcset')) { document.querySelector('.responsive-img-srcset').remove(); }" > @@ -76,3 +76,5 @@
{{ include.caption }}
{% endif %} + +