diff options
Diffstat (limited to '_includes/extensions')
-rw-r--r-- | _includes/extensions/photo-swipe.html | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/_includes/extensions/photo-swipe.html b/_includes/extensions/photo-swipe.html index 9985954..fb3ee7a 100644 --- a/_includes/extensions/photo-swipe.html +++ b/_includes/extensions/photo-swipe.html @@ -43,6 +43,9 @@ const imgEls = []; const els = galleryEl.querySelectorAll("img:not(.emoji)"); els.forEach((el) => { + if (el.src.trim() == "") { + return; + } if (!imgEls.includes(el)) { imgEls.push(el); } |