ember install ember-browser-checker
Check what browser is being used with ease. For example:
- Print a special message for safari:
{{#if (is-safari)}}
I'm on a safari!
{{/if}}
- Get the name of the user's brower:
You are on {{browser-name}}.
- Inject the
browserChecker
service and use everywhere else
browserChecker: Ember.inject.service();
...
this.get('browserChecker').get('isChrome')
Name | Helper |
---|---|
Blink | is-blink |
Chrome | is-chrome |
Edge | is-edge |
Explorer | is-explorer |
Firefox | is-firefox |
Opera | is-opera |
Safari | is-safari |