#224 Fix missing caption

This commit is contained in:
Alan Grainger
2026-05-25 16:06:16 +08:00
parent 5c169af78d
commit 7c4c1c4776
3 changed files with 51 additions and 4 deletions
+1 -3
View File
@@ -15,9 +15,7 @@ try {
console.log(e)
}
// Backward-compat shim: users with a legacy `lightGallery.*` config section
// get the few keys most of them had set mapped onto the current
// `ipp.lightbox.*` schema, with a single startup notice.
// Backward-compatability shim for 1.x users with a legacy `lightGallery.*` config section
if (config.lightGallery && typeof config.lightGallery === 'object') {
const lg = config.lightGallery as Record<string, unknown>
const mobile = (lg.mobileSettings || {}) as Record<string, unknown>