mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 09:05:36 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
e2b95f2235
1 changed files with 2 additions and 1 deletions
|
|
@ -131,7 +131,7 @@
|
||||||
|
|
||||||
const observeTitle = () => {
|
const observeTitle = () => {
|
||||||
const callback = ([entry]) => {
|
const callback = ([entry]) => {
|
||||||
title = entry.target.data;
|
title = entry.target.text;
|
||||||
};
|
};
|
||||||
|
|
||||||
const observer = new MutationObserver(callback);
|
const observer = new MutationObserver(callback);
|
||||||
|
|
@ -139,6 +139,7 @@
|
||||||
observer.observe(document.querySelector('head > title'), {
|
observer.observe(document.querySelector('head > title'), {
|
||||||
subtree: true,
|
subtree: true,
|
||||||
characterData: true,
|
characterData: true,
|
||||||
|
childList: true,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue