ChrisNZL / Fauxbar

An alternative to Chrome's Omnibox.
https://chrome.google.com/webstore/detail/fauxbar/hibkhcnpkakjniplpfblaoikiggkopka
MIT License
90 stars 13 forks source link

Error when title element is missing #42

Closed TimKingtonFC closed 5 years ago

TimKingtonFC commented 5 years ago

When a page is opened that doesn't have a title element, I get this error in the JS console:

updatetitle.js:12 Uncaught TypeError: Failed to execute 'observe' on 'MutationObserver': parameter 1 is not of type 'Node'. at updatetitle.js:12 (anonymous) @ updatetitle.js:12

It's really annoying when "stop on exceptions" is turned on, because I wind up in updatetitle.js instead of the code I'm trying to debug. It looks like this could be fixed by checking whether target is real before trying to use it.

ChrisNZL commented 5 years ago

Fixed in v1.8.0.