diff options
author | ⚔️ DR ⚔️ <46758080+caressofsteel@users.noreply.github.com> | 2022-09-14 20:52:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-14 20:52:56 +0300 |
commit | 6722dc851b2fd9e1e22b9a1effad36a7997c11b1 (patch) | |
tree | f31370198d6b1e0502657e18373692cf5305a2b6 | |
parent | ed06e518fab7854b9364ac593b8879c30e0df01c (diff) | |
parent | 1efa62127070bc27b3a4319d7446a47fe070fa0a (diff) |
Merge pull request #30 from brennentsmith/master
Add lightbox support for modern image formats.
-rw-r--r-- | assets/js/main.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/js/main.js b/assets/js/main.js index b027023..ab80d5b 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -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. |