fix to page title collect

This commit is contained in:
Francis Cao 2023-03-30 23:13:03 -07:00
parent 2172dddd1c
commit b7c3b58072

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