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.

Make title optional.

Mike Cao00d0421623ef
diff --git a/tracker/index.js b/tracker/index.js
index dfdb08b1b..601bc6ad4 100644
--- a/tracker/index.js
+++ b/tracker/index.js
@@ -154,7 +154,7 @@
const observeTitle = () => {
const callback = ([entry]) => {
- title = entry.target.text;
+ title = entry && entry.target ? entry.target.text : undefined;
};
const observer = new MutationObserver(callback);