Skip to content

dmcouncil/ember-browser-checker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ember Observer Score

Ember-browser-checker

Installation


ember install ember-browser-checker

Usage


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')

Browser Support

Name Helper
Blink is-blink
Chrome is-chrome
Edge is-edge
Explorer is-explorer
Firefox is-firefox
Opera is-opera
Safari is-safari

About

Is the user on chrome, safari, blah or blah? 🔮

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 79.7%
  • HTML 18.7%
  • CSS 1.6%