TypeScript cleanup
This commit is contained in:
3
scripts/Utils/canUseWebP.ts
Normal file
3
scripts/Utils/canUseWebP.ts
Normal file
@ -0,0 +1,3 @@
|
||||
export function canUseWebP(): boolean {
|
||||
return document.createElement("canvas").toDataURL("image/webp").indexOf("data:image/webp") === 0
|
||||
}
|
Reference in New Issue
Block a user