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 css spinner by installing panic hook #1

Open
wants to merge 4 commits into
base: fix-css-spinner
Choose a base branch
from

Conversation

sedsedus
Copy link
Owner

@sedsedus sedsedus commented Sep 27, 2023

This is more thorough because the "invalid canvas id error" (potentially very common) wouldn't get caught by the original proposal.
This one however installs a panic handler to catch all panics that may happen in WebRunner::new and WebRunner::start (and in the original proposal the app would stay in the Loading... state)
But, at the same time, it is a little more complex / less clean due to hook insertion.

sedsedus and others added 3 commits September 24, 2023 15:46
- This catches any panic that happened when starting the app (like providing invalid canvas id) and informs the user(dev) in the html
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.

1 participant