mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 08:37:13 +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,
|
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…
Add table
Add a link
Reference in a new issue