Ensure ipp.lightbox.options is an object

This commit is contained in:
Alan Grainger
2026-05-30 10:55:50 +08:00
parent 7cdc7c21f6
commit c07ef0fab3
2 changed files with 9 additions and 3 deletions
+2 -2
View File
@@ -37,7 +37,7 @@ import { thumbHashToDataURL } from '/share/static/thumbhash/thumbhash.js'
* @property {boolean} [showArrows]
* @property {boolean} [showDownload]
* @property {boolean} [mobileArrows]
* @property {Record<string, any>} [options]
* @property {Record<string, unknown>} [options]
*/
/**
@@ -668,7 +668,7 @@ function buildDataSource () {
}
function initLightbox () {
const { options = {} } = lightboxConfig;
const { options = {} } = lightboxConfig
lightbox = new PhotoSwipeLightbox({
bgOpacity: 1,