diff --git a/tracker/index.js b/tracker/index.js index 7eb95b99..58136129 100644 --- a/tracker/index.js +++ b/tracker/index.js @@ -131,7 +131,7 @@ const observeTitle = () => { const callback = ([entry]) => { - title = entry.target.data; + title = entry.target.text; }; const observer = new MutationObserver(callback); @@ -139,6 +139,7 @@ observer.observe(document.querySelector('head > title'), { subtree: true, characterData: true, + childList: true, }); };