Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

fix: :bug: gulp error so that error in sending data does not affect the action triggering it

AkashRajpurohite73865b880a4
diff --git a/src/tracker/index.js b/src/tracker/index.js
index 1686df429..491eef7da 100644
--- a/src/tracker/index.js
+++ b/src/tracker/index.js
@@ -187,7 +187,8 @@
headers,
})
.then(res => res.text())
- .then(text => (cache = text));
+ .then(text => (cache = text))
+ .catch(() => {}); // no-op, gulp error
};
const track = (obj, data) => {