Merge pull request #30 from brennentsmith/master

Add lightbox support for modern image formats.
This commit is contained in:
⚔️ DR ⚔️ 2022-09-14 13:52:56 -04:00 committed by GitHub
commit 6722dc851b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@
href = $a.attr('href');
// Not an image? Bail.
if (!href.match(/\.(jpg|gif|png|mp4)$/))
if (!href.match(/\.(jpg|gif|png|mp4|webp|avif)$/))
return;
// Prevent default.