lundi 17 octobre 2016

How to detect browser in Ember

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




Aucun commentaire:

Enregistrer un commentaire