From abd12a3f1d09c1141cc6af475dc73b6331650854 Mon Sep 17 00:00:00 2001 From: n0099 Date: Mon, 6 Feb 2023 18:33:20 +0800 Subject: [PATCH] Update kratos.js --- assets/js/kratos.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"]' })