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

Detect Vision Pro and disable magic window mode (fix #5559) #5560

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

dmarcos
Copy link
Member

@dmarcos dmarcos commented Jul 24, 2024

No description provided.

function isIOS () {
return /iPad|iPhone|iPod/.test(window.navigator.platform);
}
module.exports.isIOS = isIOS;

function isMobileDeviceRequestingDesktopSite () {
return !isMobile() && !isMobileVR() && window.orientation !== undefined;
return !isMobile() && !isAppleVisionPro() && !isMobileVR() && window.orientation !== undefined;
Copy link
Contributor

Choose a reason for hiding this comment

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

The condition should be part of isMobileVR(). That should also help with #5530

Copy link
Member Author

Choose a reason for hiding this comment

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

thanks. done

@dmarcos dmarcos merged commit c590f85 into aframevr:master Jul 29, 2024
2 checks passed
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.

2 participants