ignore body

This commit is contained in:
Daniel Bulant 2021-05-25 16:14:18 +02:00
parent cc6f25bf09
commit 29fcf7ad03

View file

@ -10,7 +10,7 @@ export const base = "https://api.mangadex.network/";
* @param {boolean} body.cached * @param {boolean} body.cached
*/ */
async function report(body) { async function report(body) {
const resp = await fetch(base + "report", { await fetch(base + "report", {
method: "POST", method: "POST",
headers: { headers: {
"Content-Type": "application/json" "Content-Type": "application/json"
@ -19,7 +19,6 @@ async function report(body) {
mode: "no-cors", mode: "no-cors",
body: body ? JSON.stringify(body) : undefined body: body ? JSON.stringify(body) : undefined
}); });
return await resp.json();
} }
export default report; export default report;