mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Check page title exists first.
This commit is contained in:
parent
4a51a5db3f
commit
c23373d164
1 changed files with 9 additions and 5 deletions
|
|
@ -159,11 +159,15 @@
|
|||
|
||||
const observer = new MutationObserver(callback);
|
||||
|
||||
observer.observe(document.querySelector('head > title'), {
|
||||
subtree: true,
|
||||
characterData: true,
|
||||
childList: true,
|
||||
});
|
||||
const node = document.querySelector('head > title');
|
||||
|
||||
if (node) {
|
||||
observer.observe(node, {
|
||||
subtree: true,
|
||||
characterData: true,
|
||||
childList: true,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
const send = payload => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue