Skip to content

Instantly share code, notes, and snippets.

@robmadole
Created February 12, 2016 22:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robmadole/40c906eb75e34b200457 to your computer and use it in GitHub Desktop.
Save robmadole/40c906eb75e34b200457 to your computer and use it in GitHub Desktop.
//= require "domready"
(function () {
domready(function () {
var bns;
var supported = (function () {
var checks = [];
try {
if (!Object.keys || !Array.prototype.map) {
return false;
}
checks = Object.keys(Modernizr).map(function (check) {
return !!Modernizr[check];
});
return !~checks.indexOf(false);
} catch(e) {
return false;
}
})();
if (!supported) {
bns = document.getElementById('browser-not-supported');
bns.className = bns.className + ' show';
}
window.BROWSER_SUPPORTED = supported;
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment