Ensure ipp.lightbox.options is an object
This commit is contained in:
+2
-2
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user