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.