grnet / djnro

DjNRO hits the decks of eduroam database management
http://djnro.grnet.gr/
Other
10 stars 21 forks source link

connect: let CAT user API drive device detection #59

Closed zmousm closed 5 years ago

zmousm commented 5 years ago

Device detection was delegated to cat_api.js (Device.guessDeviceID), which mimicked the way CAT matches the User-Agent against device modules. CAT version 2 offers a user API method detectOS, which can be used instead, alleviating the need to keep updating USER_AGENTS in cat_api.js in order to follow device matching in CAT.