Browse Source

add svg support

master
filesite 3 days ago
parent
commit
d51791bd0c
  1. 2
      lib/common.mjs

2
lib/common.mjs

@ -63,6 +63,8 @@ export default { @@ -63,6 +63,8 @@ export default {
imgType = 'webp';
}else if (/\.gif/ig.test(url) || /image\/gif/ig.test(url)) {
imgType = 'gif';
}else if (/\.svg/ig.test(url) || /image\/svg/ig.test(url)) {
imgType = 'svg';
}
return imgType;

Loading…
Cancel
Save