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: Compatible with browsers that do not support ES2019

eagleon60d4d8db22d1
diff --git a/src/tracker/index.js b/src/tracker/index.js
index 97bf3bb06..90a73c432 100644
--- a/src/tracker/index.js
+++ b/src/tracker/index.js
@@ -44,7 +44,7 @@
if (result !== str) {
return result;
}
- } catch {
+ } catch (e) {
return str;
}
@@ -55,7 +55,7 @@
try {
const { pathname, search } = new URL(url);
url = pathname + search;
- } catch {
+ } catch (e) {
/* empty */
}
return excludeSearch ? url.split('?')[0] : url;
@@ -217,7 +217,7 @@
const text = await res.text();
return (cache = text);
- } catch {
+ } catch (e) {
/* empty */
}
};