chore: fix typo in blob.ts (#5664)
Co-authored-by: David Luzar <luzar.david@gmail.com>
This commit is contained in:
parent
59ec1c6cee
commit
7922ce129e
@ -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) => {
|
const getActualMimeTypeFromImage = (buffer: ArrayBuffer) => {
|
||||||
let mimeType: ValueOf<Pick<typeof MIME_TYPES, "png" | "jpg" | "gif">> | null =
|
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.
|
* has an incorrect extension.
|
||||||
* Note: doesn't handle missing .excalidraw/.excalidrawlib extension */
|
* Note: doesn't handle missing .excalidraw/.excalidrawlib extension */
|
||||||
export const normalizeFile = async (file: File) => {
|
export const normalizeFile = async (file: File) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user