Update kratos.js

pull/569/head
n0099 2023-02-06 18:33:20 +08:00 committed by GitHub
parent f170b64688
commit abd12a3f1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@
}
var lightGalleryConfig = function () {
if(kratos.lightgallery){
if (kratos.lightgallery === '1' && window.lightGallery !== undefined) {
lightGallery(document.getElementById('lightgallery'), {
selector: 'a[href$=".jpg"], a[href$=".jpeg"], a[href$=".png"], a[href$=".gif"], a[href$=".bmp"], a[href$=".webp"]'
})