From 1efa62127070bc27b3a4319d7446a47fe070fa0a Mon Sep 17 00:00:00 2001 From: Brennen Smith Date: Mon, 22 Aug 2022 21:42:39 -0700 Subject: [PATCH] add-webp-avif --- assets/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.