Security News
NVD Backlog Tops 20,000 CVEs Awaiting Analysis as NIST Prepares System Updates
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
apostrophe-browser-requirements
Advanced tools
Politely require certain minimum browser versions
Display a polite message telling users with browsers that are too old that they must upgrade or switch browsers to view the site.
npm install --save apostrophe-browser-requirements
In app.js:
modules: {
apostrophe-browser-requirements: {
minimums: {
// Currently only supports IE version detection
ie: 9
},
// optional, should be something simple for bc, not SVG
logo: '/images/my-custom-logo.png',
// The default: invite users to visit browsehappy.com for
// information about upgrading their browser. If you shut
// this off with `browseHappy: false`, you still get
// a helpful sentence about the supported alternatives
browseHappy: true
}
}
In layout.html
:
{# At the END of the DOM so it can easily remove everything else #}
{% block extraBody %}
{{ apos.browserRequirements.message() }}
{% endblock %}
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
.
This module can display the message on versions of IE going back to IE6.
This module treats Microsoft Edge as IE 12, 13, etc. Set the ie
minimum accordingly.
Oh come on kids, that browser's come a long way.
2.0.0: compatible with Apostrophe 2.x.
FAQs
Politely require certain minimum browser versions
The npm package apostrophe-browser-requirements receives a total of 18 weekly downloads. As such, apostrophe-browser-requirements popularity was classified as not popular.
We found that apostrophe-browser-requirements demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 10 open source maintainers 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
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.