mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-14 21:10:34 +01:00
Ignore errors from telemetry.
This commit is contained in:
parent
54d25048c3
commit
6e51d6054e
@ -39,14 +39,18 @@ async function sendTelemetry(action) {
|
|||||||
upgrade,
|
upgrade,
|
||||||
};
|
};
|
||||||
|
|
||||||
await fetch(url, {
|
try {
|
||||||
method: 'post',
|
await fetch(url, {
|
||||||
cache: 'no-cache',
|
method: 'post',
|
||||||
headers: {
|
cache: 'no-cache',
|
||||||
'Content-Type': 'application/json',
|
headers: {
|
||||||
},
|
'Content-Type': 'application/json',
|
||||||
body: JSON.stringify(payload),
|
},
|
||||||
});
|
body: JSON.stringify(payload),
|
||||||
|
});
|
||||||
|
} catch {
|
||||||
|
// Ignore
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
Loading…
Reference in New Issue
Block a user