Skip to content

Commit 9e3a190

Browse files
committed
Remove invalid captionContent from PhotoSwipe options
1 parent 4b2b226 commit 9e3a190

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/components/PhotoGallery.astro

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,6 @@ try {
206206

207207
// Accessibility
208208
closeOnVerticalDrag: true,
209-
210-
// Caption parser - extract from data attribute
211-
captionContent: (slide: { data: { element?: HTMLElement } }) => {
212-
const caption = slide.data.element?.dataset.pswpCaption;
213-
return caption || "";
214-
},
215209
});
216210

217211
lightbox.init();

0 commit comments

Comments
 (0)