Socket
Socket
Sign inDemoInstall

apostrophe-browser-requirements

Package Overview
Dependencies
Maintainers
9
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apostrophe-browser-requirements

Politely require certain minimum browser versions


Version published
Weekly downloads
19
decreased by-13.64%
Maintainers
9
Weekly downloads
 
Created
Source

apostrophe-browser-requirements

Display a polite message telling users with browsers that are too old that they must upgrade or switch browsers to view the site. Use only when necessary.

npm install --save apostrophe-browser-requirements

In app.js:

modules: {
  apostrophe-browser-requirements: {
    minimums: {
      // currently only supports IE detection
      ie: 9
    },
    // optional, should be something simple, not SVG
    logo: '/images/my-custom-logo.png'
  }
}

And optionally, in your CSS:

#apos-browser-requirements {
  background-color: #somethingthatmatchesyourlogonicely
}

If you don't configure a logo, it looks a little "unofficial," so we recommend providing one.

You can override views/content.html at project level if you need to change the text or don't want to link to browsehappy.com.

IE version support

This module can display the message on versions of IE going back to IE6.

"What about Microsoft Edge?"

This module treats Microsoft Edge as IE 12, 13, etc. Set the ie minimum accordingly.

"What about blocking IE completely?"

Oh come on kids, that browser's come a long way.

Keywords

FAQs

Package last updated on 17 May 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc