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: prevent iOS from loading webcontainer module #584

Merged
merged 1 commit into from
Mar 2, 2024
Merged

Conversation

eltigerchino
Copy link
Member

@eltigerchino eltigerchino commented Feb 18, 2024

fixes #416
will create a new issue(?) to remind us to remove it when stackblitz/webcontainer-core#1120 is addresed

Prevents user agent strings with iphone from loading the webcontainer module. Includes a button in the error message to load the webcontainer anyway in case it's a false positive.

I tested on an iPad mini 4 and it doesn't have the same crashing issue as an iphone hence I omitted it from the user agent string.

Copy link

vercel bot commented Feb 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
learn-svelte-dev ✅ Ready (Inspect) Visit Preview Feb 18, 2024 3:31pm

@dummdidumm dummdidumm merged commit 9b19caf into main Mar 2, 2024
3 checks passed
@dummdidumm dummdidumm deleted the fix-ios-crash branch March 2, 2024 17:53
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.

Svelte website keeps refreshing and crashes on iOS.
2 participants