fix to page title collect

pull/1862/head
Francis Cao 2023-03-30 23:13:03 -07:00
parent 2172dddd1c
commit b7c3b58072
1 changed files with 2 additions and 1 deletions

View File

@ -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,
});
};