mirror of
https://github.com/umami-software/umami.git
synced 2026-02-15 18:15:35 +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);
|
const observer = new MutationObserver(callback);
|
||||||
|
|
||||||
observer.observe(document.querySelector('head > title'), {
|
const node = document.querySelector('head > title');
|
||||||
subtree: true,
|
|
||||||
characterData: true,
|
if (node) {
|
||||||
childList: true,
|
observer.observe(node, {
|
||||||
});
|
subtree: true,
|
||||||
|
characterData: true,
|
||||||
|
childList: true,
|
||||||
|
});
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const send = payload => {
|
const send = payload => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue