diff --git a/assets/js/kratos.js b/assets/js/kratos.js index 4e5ae8e..91e1015 100644 --- a/assets/js/kratos.js +++ b/assets/js/kratos.js @@ -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"]' })