Commit Graph

2 Commits

Author SHA1 Message Date
Mukul Rawat
a06e453ea1 [MM-12536] Migrate to idiomatic error handling the file app/user_agent.go in the mattermost-server (#9575) (#9576)
* Make changes to function getPlatformName.

* Make changes to the function getOSName, use switch statement inside instead of nested if

* create helper function and make getBrowserVersion() more idiomatic

* update getUAVersion

* update getBrowserName

* changes required in review done
2018-10-15 20:01:35 +01:00
Harrison Healey
a752d7de5a MM-10495 Updated user agent detection to match output of previous library (#8748)
* MM-10495 Updated user agent detection to match output of previous library

* Fixed missing license header
2018-05-09 12:25:03 -04:00