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: added check if there is no parent element

Truimo4876684461f2
diff --git a/tracker/index.js b/tracker/index.js
index 2278a1f97..e5d592733 100644
--- a/tracker/index.js
+++ b/tracker/index.js
@@ -119,6 +119,9 @@
return currentElement;
}
currentElement = currentElement.parentElement;
+ if (currentElement === null) {
+ return null;
+ }
}
return null;
};