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,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 = {