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

Add new faviconPath option #312

Closed
wants to merge 5 commits into from

Conversation

jordanoverbye
Copy link
Contributor

@jordanoverbye jordanoverbye commented Jan 2, 2024

This PR fixes issue #311 (which appears to be breaking builds in version 0.34.1) by adding a new faviconPath option.

I've also tried to simplify the favicon implementation by replacing the favicon.png and favicon-inverted.png files with a single SVG favicon.

@jordanoverbye jordanoverbye requested a review from a team as a code owner January 2, 2024 06:22
Copy link

changeset-bot bot commented Jan 2, 2024

🦋 Changeset detected

Latest commit: 187b820

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
playroom Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

// Use the favicon from the config if specified, otherwise don't use anything
const favicon = playroomConfig.faviconPath
? relativeResolve(playroomConfig.faviconPath)
: undefined;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've defaulted to undefined here because I believe the /images folder is not published to npm, and I'm not sure if you want to do that. However, I'm happy to change this if needed.

@mrm007 mrm007 assigned mrm007 and unassigned mrm007 Jan 7, 2024
@askoufis
Copy link
Contributor

askoufis commented Jan 24, 2024

SVG icons aren't supported at all in Safari, and some mobile browsers. I would suggest that it's not worth worse browser support for a slight simplification. This issue can be fixed without also adding a feature too. The feature should be discussed/implemented separately.

@jordanoverbye jordanoverbye deleted the fix-favicon branch February 7, 2024 04:04
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