lint fixes
This commit is contained in:
parent
c02f0b3b33
commit
6015254e59
71 changed files with 160 additions and 160 deletions
|
|
@ -6,7 +6,7 @@
|
|||
let isWebpSupportedCache: boolean | undefined;
|
||||
export function isWebpSupported() {
|
||||
if (isWebpSupportedCache === undefined) {
|
||||
const canvas = document.createElement('canvas');
|
||||
const canvas = window.document.createElement('canvas');
|
||||
canvas.width = 1;
|
||||
canvas.height = 1;
|
||||
isWebpSupportedCache = canvas.toDataURL('image/webp').startsWith('data:image/webp');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue