Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

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

Ikko Ashimine7922ce129e56
diff --git a/src/data/blob.ts b/src/data/blob.ts
index ceecd93455..b5ca1dcadf 100644
--- a/src/data/blob.ts
+++ b/src/data/blob.ts
@@ -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) => {