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 Feb 6, 2021
1 parent 12e4e5f commit 4b00dbc
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 4b00dbc

Please sign in to comment.