alyssaxuu / omni

The all-in-one tool to supercharge your productivity ⌨️
https://chrome.google.com/webstore/detail/omni/mapjgeachilmcbbokkgcbgpbakaaeehi?hl=en&authuser=0
MIT License
7.22k stars 338 forks source link

favIconUrl is sometimes undefined on action (tab) (Firefox only?) #102

Open kjeldahl opened 1 year ago

kjeldahl commented 1 year ago

In https://github.com/alyssaxuu/omni/blob/master/src/content.js#L72 the action.favIconUrl is sometime undefined for tab actions which will then cause a network request to /undefined.

It fails to load the image and the error handler shows the globe instead.

I guess it would be better to just show globe immediately when favIconUrl is undefined to avoid a failing request in the log.

I have only noticed this on Firefox (currently running v107.0.1 on Mac M1)

mattsches commented 1 year ago

I think I have the same issue here (Firefox, Ubuntu), and it's particularly annoying while developing/debugging web applications - the extra request really shouldn't happen.