From 5c239939babe2868f1d9a08bc63c4895f20e9618 Mon Sep 17 00:00:00 2001 From: PHOENiX Date: Sat, 6 Feb 2021 01:14:21 +0000 Subject: [PATCH] Add .webp to supported lightbox images (#2788) --- 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 82e1194431c3..0efc970269fa 100644 --- a/assets/js/_main.js +++ b/assets/js/_main.js @@ -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