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

GLTFLoader: Fix safariVersion not found on chrome iOS #28712

Merged

Conversation

RenaudRohlinger
Copy link
Collaborator

Related issue: #28560

Description
Screenshot 2024-06-21 at 16 31 08
Issue #28560 broke the GLTFLoader on Chrome for iOS because the user agent string is different:
"Mozilla/5.0 (iPhone; CPU iPhone OS 18_0 like Mac OS X) AppleWebKit/6.... (KHTML, like Gecko) CriOS/1...80 Mobile/15... Safari/604.3" = $1

It is unclear if it's possible to identify the Safari version for Chrome, I think it would be possible using the OS version as the Safari browser version is related to the OS version on iOS.

In the meantime, this fix patches the GLTFLoader issue.

This contribution is funded by Utsubo

@Mugen87 Mugen87 merged commit 7e2f886 into mrdoob:dev Jun 21, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants