Make title optional.

This commit is contained in:
Mike Cao 2023-04-21 17:59:03 -07:00
parent 987e3aabbd
commit 00d0421623

View File

@ -154,7 +154,7 @@
const observeTitle = () => {
const callback = ([entry]) => {
title = entry.target.text;
title = entry && entry.target ? entry.target.text : undefined;
};
const observer = new MutationObserver(callback);