Skip to content

Commit

Permalink
Add .webp to supported lightbox images (mmistakes#2788)
Browse files Browse the repository at this point in the history
  • Loading branch information
rlaphoenix authored and chukycheese committed Sep 18, 2023
1 parent 45a150a commit 5c23993
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/_main.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ $(document).ready(function() {

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

// Magnific-Popup options
Expand Down

0 comments on commit 5c23993

Please sign in to comment.