mirror of
https://github.com/kremalicious/umami.git
synced 2025-01-05 19:35:43 +01:00
fix to page title collect
This commit is contained in:
parent
2172dddd1c
commit
b7c3b58072
@ -132,7 +132,7 @@
|
||||
|
||||
const observeTitle = () => {
|
||||
const callback = ([entry]) => {
|
||||
title = entry.target.data;
|
||||
title = entry.target.text;
|
||||
};
|
||||
|
||||
const observer = new MutationObserver(callback);
|
||||
@ -140,6 +140,7 @@
|
||||
observer.observe(document.querySelector('head > title'), {
|
||||
subtree: true,
|
||||
characterData: true,
|
||||
childList: true,
|
||||
});
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user