in app/static/utilities.js [65:83]
async function removeFromCartRequest(id, update, restore) {
try {
await fetch(deleteFromCartURL, {
method: "DELETE",
mode: "same-origin",
cache: "no-cache",
headers: {
"Content-Type": "application/x-www-form-urlencoded",
},
redirect: "error",
referrer: "no-referrer",
body: `id=${id}`
})
update();
} catch (error) {
console.log(error);
restore();
}
}