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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Display found preview image while not using the Google favicon API #16

Merged
merged 7 commits into from
Jan 12, 2023

Conversation

naxvog
Copy link
Contributor

@naxvog naxvog commented Jan 11, 2023

Sorry for the myriad of PRs but I found an issue failing to display the found image while not using the Google API.
This PR fixes that issue and cleans up the JSX-code (quite rusty with those at the moment).

Feel free to merge/release this whenever as this fix is not a critical one 馃槈

@datlechin
Copy link
Owner

The API response that have image property, should it shows default when useGoogleFavicon is diabled?

@naxvog
Copy link
Contributor Author

naxvog commented Jan 11, 2023

Good catch. The LinkPreview-image Element should not be shown if there is no image and no Google Fallback available.

There is however the option to show a default image in such a case, but I prefer the element to not be shown instead as the less code for that is already in place.

@datlechin datlechin merged commit 16792ea into datlechin:master Jan 12, 2023
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.

None yet

3 participants