mirror of
https://github.com/danbulant/Mangades
synced 2026-07-05 11:00:40 +00:00
implement download reporting
This commit is contained in:
parent
a4954b6177
commit
f7103b3c87
1 changed files with 2 additions and 1 deletions
|
|
@ -10,7 +10,8 @@ export const base = "https://api.mangadex.network/";
|
||||||
* @param {boolean} body.cached
|
* @param {boolean} body.cached
|
||||||
*/
|
*/
|
||||||
async function report(body) {
|
async function report(body) {
|
||||||
return;
|
// return console.log("Should report", body);
|
||||||
|
if(body.url.includes("uploads.mangadex.org")) return;
|
||||||
await fetch(base + "report", {
|
await fetch(base + "report", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue