Skip to content

utils: handle userAgentData browser compatibility #210

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

Merged
merged 1 commit into from
Feb 24, 2025
Merged

Conversation

BruceMacD
Copy link
Collaborator

Use runtime checks and minimal type assertion to safely handle the userAgentData API which is not yet widely supported across browsers. This maintains TypeScript type safety while ensuring the platform detection works in both modern and legacy browsers.

Use runtime checks and minimal type assertion to safely handle the
userAgentData API which is not yet widely supported across browsers.
This maintains TypeScript type safety while ensuring the platform
detection works in both modern and legacy browsers.
@BruceMacD BruceMacD merged commit 99293ab into main Feb 24, 2025
4 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.

1 participant