From 29fcf7ad03aeecee7cafbaef6d52aa21494f1fe9 Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Tue, 25 May 2021 16:14:18 +0200 Subject: [PATCH] ignore body --- src/util/report.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/util/report.js b/src/util/report.js index 6d0d07f..bb7f720 100644 --- a/src/util/report.js +++ b/src/util/report.js @@ -10,7 +10,7 @@ export const base = "https://api.mangadex.network/"; * @param {boolean} body.cached */ async function report(body) { - const resp = await fetch(base + "report", { + await fetch(base + "report", { method: "POST", headers: { "Content-Type": "application/json" @@ -19,7 +19,6 @@ async function report(body) { mode: "no-cors", body: body ? JSON.stringify(body) : undefined }); - return await resp.json(); } export default report; \ No newline at end of file