How to determine the operating system using JavaScript (without the deprecated window.navigator)

Visitor operating system discovery was easy with the navigator.platform solution. However, this solution is now deprecated, so my question is, quite simply, is there another way to get the OS using JavaScript?

I looked at the website and everything seems to point to the navigator object, but as the following link shows, this is deprecated ...

https://developer.mozilla.org/en-US/docs/Web/API/NavigatorID/platform

+5
source share
1 answer

This may be useful for you, a small project from github.

https://github.com/Pagawa/PgwBrowser http://pgwjs.com/pgwbrowser/

Code to use var pgwBrowser = $.pgwBrowser();

0
source

Source: https://habr.com/ru/post/1240018/


All Articles