Does Ember have built-in way to detect browser? Something like this if using this library(bowser)
if (bowser.msie) {
...
} else if (bowser.gecko) {
...
} else if (bowser.webkit) {
...
}
Or, I can just npm install bowser
, then import it and use it in Ember
Ember UserAgent is an Ember addon which exposes a
userAgent
service, making it easy to detect browser, device, OS and more.It works in both browser & Fastboot environments and is as simple as: