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

Fix WebUI crashing when SVG support is disabled #15809

Merged
merged 1 commit into from
Feb 28, 2021

Conversation

ClearlyClaire
Copy link
Contributor

@ClearlyClaire ClearlyClaire commented Feb 27, 2021

Fixes #14910

Tor Browser's “Safest” security setting disables SVGs entirely (svg.disabled in about:settings), causing React DOM reconciliation to crash when trying to render a SVG object in react-sparklines. This PR adds an error boundary to avoid crashing the whole app if react-sparklines errors out.

@Gargron Gargron merged commit 0635c87 into mastodon:main Feb 28, 2021
chrisguida pushed a commit to Start9Labs/mastodon that referenced this pull request Feb 26, 2022
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.

Can't sign into account in tor browser
2 participants