Просмотр исходного кода

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

Co-authored-by: David Luzar <luzar.david@gmail.com>
Ikko Ashimine 2 лет назад
Родитель
Сommit
7922ce129e
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/data/blob.ts

+ 2 - 2
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) => {