approved-browser
v1.0.2
Published
Specify minimum versions of browsers and get accept/reject callbacks on approved/disapproved browsers
Downloads
76
Readme
approved-browser
Client side detection of required browser versions.
install
npm install approved-browser
usage
var ab = require('approved-browser');
ab({
Chrome : 37
, Firefox : 28
, Safari : 6.1
, strict : false //if true any browser NOT listed will be rejected too.
}, function (approved, ua) {
if (!approved) {
//do thing for unapproved browsers such as...
window.location.href = '/support/unapproved-browser.html';
}
});
license
MIT