diff --git a/tracker/index.js b/tracker/index.js index 698dd09e..68ee282e 100644 --- a/tracker/index.js +++ b/tracker/index.js @@ -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, }); };