mirror of
https://github.com/danbulant/Mangades
synced 2026-07-05 02:50:34 +00:00
ignore body
This commit is contained in:
parent
cc6f25bf09
commit
29fcf7ad03
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||||
Loading…
Reference in a new issue