
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
ember-display-in-browser
Advanced tools
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
{{!-- arrayOfBrowsers = ["Chrome", "firefox"] --}}
{{#display-in-browser only=arrayOfBrowsers}}
<p>This will be visible only in Chrome and Firefox</p>
{{/display-in-browser}}
{{#display-in-browser only="ie"}}
<p>This will be visible only in Internet Explorer</p>
{{/display-in-browser}}
{{!-- arrayOfBrowsers = ["Chrome", "firefox"] --}}
{{#display-in-browser except=arrayOfBrowsers}}
<p>This will not be visible in Chrome and Firefox</p>
{{/display-in-browser}}
{{!-- arrayOfBrowsers = ["ie", "mobile"] --}}
{{#display-in-browser except=arrayOfBrowsers}}
<p>This will not be visible in IE and Mobile browsers</p>
{{/display-in-browser}}
{{#display-in-browser except="ie"}}
<p>This will not be visible in IE.</p>
{{/display-in-browser}}
{{#display-in-browser all=all}}
<p>This will be visible in all browsers</p>
{{/display-in-browser}}
{{!-- You can also pass as a string, if needed --}}
{{#display-in-browser all="true"}}
<p>This will be visible in all browsers</p>
{{/display-in-browser}}
{{#display-in-browser none="true"}}
<p>This will not be visible in any browser</p>
{{/display-in-browser}}
Supported browsers - 'chrome', 'firefox', 'safari', 'opera', 'ie', 'edge', 'blink', 'mobile'
(case-insensitive).
Inspired by react-render-in-browser.
MIT @Sivasubramanyam A
FAQs
Display browser specific content.
We found that ember-display-in-browser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.