From f7103b3c875447bcecb11f6338effe310259dcb6 Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Sun, 25 Sep 2022 15:37:31 +0200 Subject: [PATCH] implement download reporting --- src/util/report.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/report.js b/src/util/report.js index 01168ba..16ade12 100644 --- a/src/util/report.js +++ b/src/util/report.js @@ -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: {