Skip to content

Commit 8282a9f

Browse files
authored
Add AVIF image support (#267)
1 parent 021e439 commit 8282a9f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/baguetteBox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
// If set to true ignore touch events because animation was already fired
6969
var touchFlag = false;
7070
// Regex pattern to match image files
71-
var regex = /.+\.(gif|jpe?g|png|webp)/i;
71+
var regex = /.+\.(gif|jpe?g|png|webp|avif)/i;
7272
// Object of all used galleries
7373
var data = {};
7474
// Array containing temporary images DOM elements

0 commit comments

Comments
 (0)