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

Add navigator.platform #24117

Open
kt3k opened this issue Jun 6, 2024 · 2 comments
Open

Add navigator.platform #24117

kt3k opened this issue Jun 6, 2024 · 2 comments
Labels
suggestion suggestions for new features (yet to be agreed) web related to Web APIs

Comments

@kt3k
Copy link
Member

kt3k commented Jun 6, 2024

navigator.platform is available in many runtimes such as: Browsers, Node.js (>=v21, experimental), and Bun. If this is available in Deno, platform detection can be very easily done in a cross-runtime way.

@kt3k
Copy link
Member Author

kt3k commented Jun 6, 2024

related: nodejs/node#50385

@iuioiua
Copy link
Collaborator

iuioiua commented Jun 6, 2024

I think we should do this, even though it's deprecated (documentation).

@lucacasonato lucacasonato added web related to Web APIs suggestion suggestions for new features (yet to be agreed) labels Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
suggestion suggestions for new features (yet to be agreed) web related to Web APIs
Projects
None yet
Development

No branches or pull requests

3 participants