Skip to content

Commit

Permalink
Update media-uploader.js
Browse files Browse the repository at this point in the history
  • Loading branch information
SharkPool-SP authored Dec 22, 2024
1 parent 5b91fbe commit 2cd411b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/media-uploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ async function uploadFile(base64, id, i) {
formData.append("file", blob, fileName);
return fetch("https://yeetyourfiles.lol/api/upload", { method: "POST", body: formData })
.then(response => response.json())
.then(data => {
return JSON.stringify(data);
})
.then(data => { return data })
.catch(e => {
console.warn("POST ERROR:", e);
return undefined;
Expand Down

0 comments on commit 2cd411b

Please sign in to comment.