mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
Ignore errors from telemetry.
This commit is contained in:
parent
54d25048c3
commit
6e51d6054e
1 changed files with 12 additions and 8 deletions
|
|
@ -39,14 +39,18 @@ async function sendTelemetry(action) {
|
|||
upgrade,
|
||||
};
|
||||
|
||||
await fetch(url, {
|
||||
method: 'post',
|
||||
cache: 'no-cache',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
body: JSON.stringify(payload),
|
||||
});
|
||||
try {
|
||||
await fetch(url, {
|
||||
method: 'post',
|
||||
cache: 'no-cache',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
body: JSON.stringify(payload),
|
||||
});
|
||||
} catch {
|
||||
// Ignore
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue