Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed: replace the image when rendering url with a placeholder #508

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

zzggo
Copy link
Contributor

@zzggo zzggo commented Feb 12, 2025

Related Issue

Closes #506

Summary of Changes

Need Regression Testing

  • Yes
  • No

Risk Assessment

  • Low
  • Medium
  • High

Additional Notes

Screenshots (if applicable)

@zzggo zzggo requested a review from tombeckenham February 12, 2025 08:18
Copy link

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

onError={(e) => {
e.currentTarget.onerror = null;
e.currentTarget.src = flowgrey;
}}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Try using the Google favicon api as a fallback. It should work nicely

Suggested change
}}
e.currentTarget.src = `https://www.google.com/s2/favicons?sz=256&domain_url=${imageUrl}`;

@zzggo zzggo deployed to development February 12, 2025 10:34 — with GitHub Actions Active
@zzggo zzggo requested a review from tombeckenham February 12, 2025 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants