diff --git a/scripts/telemetry.js b/scripts/telemetry.js index 64e537f3..100e6864 100644 --- a/scripts/telemetry.js +++ b/scripts/telemetry.js @@ -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 = {