Display browser specific content.
You can see a demo here.
Say you are developing an application that makes use of features that are not available in IE. You can make use of this addon to display a message asking the user to use a browser other than IE.
This addon has some valid use cases(like I explained in the why
section). However, you should
prefer to make use of feature checks instead of relying on the User Agent.
Even though this addon lets you specify several browsers alone, please do not develop an app that supports Chrome(or Safari) alone. Compatibility matters.
ember install ember-display-in-browser
- To display only in one or a set of browsers,
- To display in browsers other than one or more browsers,
- To display in all browsers,
- To display in no browser,
Supported browsers - 'chrome', 'firefox', 'safari', 'opera', 'ie', 'edge', 'blink', 'mobile'
(case-insensitive).
Inspired by react-render-in-browser.
MIT @Sivasubramanyam A