implement download reporting

This commit is contained in:
Daniel Bulant 2022-09-25 15:37:31 +02:00
parent a4954b6177
commit f7103b3c87

View file

@ -10,7 +10,8 @@ export const base = "https://api.mangadex.network/";
* @param {boolean} body.cached
*/
async function report(body) {
return;
// return console.log("Should report", body);
if(body.url.includes("uploads.mangadex.org")) return;
await fetch(base + "report", {
method: "POST",
headers: {