Skip to content

Commit

Permalink
fix Fancybox caption
Browse files Browse the repository at this point in the history
API 变更
  • Loading branch information
inkss authored Mar 29, 2024
1 parent 4e5500d commit 6c1ca66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -731,8 +731,8 @@ const VolantisFancyBox = (() => {
Thumbs: {
autoStart: false,
},
caption: function (fancybox, carousel, slide) {
return slide.$trigger.alt || null
caption: function (fancybox, slide) {
return slide.thumbEl?.alt || "";
}
});
});
Expand Down

0 comments on commit 6c1ca66

Please sign in to comment.