From 243abb0a3d29e8e34e263eec843488e3bdb468a4 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 31 Oct 2024 09:34:16 -0700 Subject: biome --- src/lib/upload.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/upload.ts') diff --git a/src/lib/upload.ts b/src/lib/upload.ts index 6bc5eaf3..6d9d4230 100644 --- a/src/lib/upload.ts +++ b/src/lib/upload.ts @@ -1,10 +1,10 @@ export const upload = async (file, type, progress) => { - let url = `/api/upload/${type}`; - let formData = new FormData(); + const url = `/api/upload/${type}`; + const formData = new FormData(); formData.append("file", file); return new Promise((resolve, reject) => { - let ajax = new XMLHttpRequest(); + const ajax = new XMLHttpRequest(); ajax.addEventListener("load", () => { if (ajax.readyState === ajax.DONE) { if (ajax.status === 200) resolve(ajax.response); -- cgit v1.2.3