chore: fix typo in blob.ts (#5664)

Co-authored-by: David Luzar <luzar.david@gmail.com>
This commit is contained in:
Ikko Ashimine 2022-09-12 06:50:51 +09:00 committed by GitHub
parent 59ec1c6cee
commit 7922ce129e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -356,7 +356,7 @@ export const getFileHandle = async (
};
/**
* attemps to detect if a buffer is a valid image by checking its leading bytes
* attempts to detect if a buffer is a valid image by checking its leading bytes
*/
const getActualMimeTypeFromImage = (buffer: ArrayBuffer) => {
let mimeType: ValueOf<Pick<typeof MIME_TYPES, "png" | "jpg" | "gif">> | null =
@ -396,7 +396,7 @@ export const createFile = (
});
};
/** attemps to detect correct mimeType if none is set, or if an image
/** attempts to detect correct mimeType if none is set, or if an image
* has an incorrect extension.
* Note: doesn't handle missing .excalidraw/.excalidrawlib extension */
export const normalizeFile = async (file: File) => {