Skip to content

Detects used OS and browser by parsing navigator.userAgent string

License

Notifications You must be signed in to change notification settings

EneaEntertainment/detect-os-browser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

detect-os-browser

Detects used OS and browser by parsing navigator.userAgent string

Motivation : detect Apple mobile device with 'request desktop website' setting turned on (tested with Chrome, Firefox, Safari)

Today Apple has no Macs with touch screen - which detection routine relies on. However that can change in future and break things...

Based on detection routines kindly borrowed from Phaser (https://github.com/photonstorm/phaser)

DEMO : http://os.enea.sk

About

Detects used OS and browser by parsing navigator.userAgent string

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published