diff --git a/src/clientAnalytics.js b/src/clientAnalytics.js index 77f68f0..5d2e4e6 100644 --- a/src/clientAnalytics.js +++ b/src/clientAnalytics.js @@ -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) })(); };