mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 08:01:20 -08:00
feat: comment out tracking event logging for future review
This commit is contained in:
1 parent
9c819676bd
commit
88de2ae9e6
1 file changed
+36
-36
@@ -1694,42 +1694,42 @@ self.onmessage = async (event) => {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
function j(e, t = {}) {
|
function j(e, t = {}) {
|
||||||
try {
|
// try {
|
||||||
if (!R)
|
// if (!R)
|
||||||
return void console.warn(
|
// return void console.warn(
|
||||||
"[Tracking] Not initialized - skipping event:",
|
// "[Tracking] Not initialized - skipping event:",
|
||||||
e,
|
// e,
|
||||||
);
|
// );
|
||||||
if ("error" === e && t.error_stage) {
|
// if ("error" === e && t.error_stage) {
|
||||||
const e = t.error_stage;
|
// const e = t.error_stage;
|
||||||
if (A.has(e))
|
// if (A.has(e))
|
||||||
return void console.log(
|
// return void console.log(
|
||||||
"[Tracking] Skipping duplicate error for stage:",
|
// "[Tracking] Skipping duplicate error for stage:",
|
||||||
e,
|
// e,
|
||||||
);
|
// );
|
||||||
A.add(e);
|
// A.add(e);
|
||||||
}
|
// }
|
||||||
const n = {
|
// const n = {
|
||||||
...S,
|
// ...S,
|
||||||
event_type: e,
|
// event_type: e,
|
||||||
timestamp: new Date().toISOString(),
|
// timestamp: new Date().toISOString(),
|
||||||
...t,
|
// ...t,
|
||||||
};
|
// };
|
||||||
(fetch(
|
// (fetch(
|
||||||
"https://axo75x5aol.execute-api.us-east-2.amazonaws.com/default/log",
|
// "https://axo75x5aol.execute-api.us-east-2.amazonaws.com/default/log",
|
||||||
{
|
// {
|
||||||
method: "POST",
|
// method: "POST",
|
||||||
headers: { "Content-Type": "application/json" },
|
// headers: { "Content-Type": "application/json" },
|
||||||
body: JSON.stringify(n),
|
// body: JSON.stringify(n),
|
||||||
keepalive: !0,
|
// keepalive: !0,
|
||||||
},
|
// },
|
||||||
).catch((t) => {
|
// ).catch((t) => {
|
||||||
console.warn("[Tracking] Failed to send event:", e, t);
|
// console.warn("[Tracking] Failed to send event:", e, t);
|
||||||
}),
|
// }),
|
||||||
console.log("[Tracking] Event logged:", e));
|
// console.log("[Tracking] Event logged:", e));
|
||||||
} catch (e) {
|
// } catch (e) {
|
||||||
console.warn("[Tracking] Unexpected error in logEvent:", e);
|
// console.warn("[Tracking] Unexpected error in logEvent:", e);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
const G = async function (e) {
|
const G = async function (e) {
|
||||||
const {
|
const {
|
||||||
|
|||||||
Reference in new issue
Block a user