mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-29 11:36:16 +00:00
Fixing random crap Deepsource complained about
This commit is contained in:
parent
5cb8c1dd13
commit
f4ea1984b0
3 changed files with 7 additions and 49 deletions
|
@ -1,7 +1,7 @@
|
|||
async function checkWebpSupport() {
|
||||
function checkWebpSupport() {
|
||||
var webpSupport = false;
|
||||
try {
|
||||
webpSupport = document.createElement('canvas').toDataURL('image/webp').indexOf('data:image/webp') == 0;
|
||||
webpSupport = document.createElement('canvas').toDataURL('image/webp').indexOf('data:image/webp') === 0;
|
||||
} catch (e) {
|
||||
webpSupport = false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue