Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
} else {
options.index = parseInt(index, 10)
}
// exit if index not found
if (isNaN(options.index)) {
return
}
if (disableAnimation) {
options.showAnimationDuration = 0
}
// Pass data to PhotoSwipe and initialize it
let gallery = new PhotoSwipe(pswpElement, PhotoSwipeUIDefault, items, options)
gallery.init()
}