mirror of https://github.com/msgbyte/tailchat
refactor: move isGIF method's location
parent
702ff7596e
commit
8a4bec8819
@ -1,8 +0,0 @@
|
||||
/**
|
||||
* Judge GIF File type by mime type
|
||||
* @param file File object
|
||||
* @returns if passed file object is a gif image.
|
||||
*/
|
||||
export const isGIF = (file: File): boolean => {
|
||||
return file.type === 'image/gif';
|
||||
};
|
Loading…
Reference in New Issue