Skip to content

Commit 4b00dbc

Browse files
authored
Add .webp to supported lightbox images (mmistakes#2788)
1 parent 12e4e5f commit 4b00dbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/js/_main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ $(document).ready(function() {
8383

8484
// add lightbox class to all image links
8585
$(
86-
"a[href$='.jpg'],a[href$='.jpeg'],a[href$='.JPG'],a[href$='.png'],a[href$='.gif']"
86+
"a[href$='.jpg'],a[href$='.jpeg'],a[href$='.JPG'],a[href$='.png'],a[href$='.gif'],a[href$='.webp']"
8787
).addClass("image-popup");
8888

8989
// Magnific-Popup options

0 commit comments

Comments
 (0)