client analytics improvement (dont console.log randomly)

This commit is contained in:
Soph :3 2025-10-31 17:13:20 +02:00
parent 79789265c8
commit 44020d24e4

View file

@ -27,13 +27,12 @@
const send = (type, data = {}) => {
(async () => {
const res = await fetch(API + "/some-cool-endpoint", {
await fetch(API + "/some-cool-endpoint", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ type, t: Date.now(), ...common, ...data }),
keepalive: true,
});
console.log(res)
})();
};