在Firefox中检测Windows 11(或任何没有支持客户提示的浏览器)
我尝试使用JavaScript检测Windows 11,而不使用此信息:
navigator.userAgentData.getHighEntropyValues
我的原因:
- 在许多浏览器中不支持
- 并不总是方便的
- 它需要异步编程,这
,我知道有一些问题,但没有一个解决方案,没有任何解决方案不使用用户代理客户端提示。
这是可能的,还是我们基本上无法再检测到Windows的新版本?
I trying to detect Windows 11 using javascript without using this:
navigator.userAgentData.getHighEntropyValues
My reasons:
- Is not supported in many browsers
- It requires async programing which is not always convenient
- It requires HTTPS
I know there are some questions about this, but none of them has any solution that doesn't use the User-Agent Client Hints.
Is this possible or we basically can't detect the newer versions of Windows anymore?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论