Skip to content

fix: update testPlatform to use userAgent instead of platform#638

Open
weepaho3 wants to merge 1 commit intoemilkowalski:mainfrom
weepaho3:fix/replace-navigator-platform
Open

fix: update testPlatform to use userAgent instead of platform#638
weepaho3 wants to merge 1 commit intoemilkowalski:mainfrom
weepaho3:fix/replace-navigator-platform

Conversation

@weepaho3
Copy link
Copy Markdown

@weepaho3 weepaho3 commented Jan 5, 2026

This PR replaces the deprecated navigator.platform property with navigator.userAgent in the testPlatform helper function. Relying on navigator.platform was causing platform detection issues, especially when running as a PWA on iOS. Switching to navigator.userAgent seems to fix these inconsistencies and ensures more reliable detection across environments.

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