Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

Use data uri scheme for favicon urls #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

raviles
Copy link

@raviles raviles commented Nov 11, 2020

The data URI scheme is used by some sites as an img src, including Great Suspender tab favicons (data:image/png;base64,....). Updated regex to include this scheme

@@ -100,7 +100,7 @@ function Tab({ tab, isHighlighted, onRemove, ...props }) {
return (
<Container isHighlighted={isHighlighted} {...props}>
<FavIcon>
{/^https?:\/\//.test(tab.favIconUrl) ? (
{/^(https?:\/\/|data:image)/.test(tab.favIconUrl) ? (
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@colebemis this fixes src=data:image favicons from "Great Suspender"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant