Ignore errors from telemetry.

This commit is contained in:
Mike Cao 2022-04-04 15:14:26 -07:00
parent 54d25048c3
commit 6e51d6054e

View File

@ -39,6 +39,7 @@ async function sendTelemetry(action) {
upgrade,
};
try {
await fetch(url, {
method: 'post',
cache: 'no-cache',
@ -47,6 +48,9 @@ async function sendTelemetry(action) {
},
body: JSON.stringify(payload),
});
} catch {
// Ignore
}
}
module.exports = {