Deepsource

This commit is contained in:
Michał Gdula 2023-04-12 15:30:54 +00:00
parent cc613f9fe9
commit ec2d1fbe8a
4 changed files with 17 additions and 16 deletions

View file

@ -1,5 +1,5 @@
function checkWebpSupport() {
var webpSupport = false;
let webpSupport = false;
try {
webpSupport = document.createElement('canvas').toDataURL('image/webp').indexOf('data:image/webp') === 0;
} catch (e) {