Last active
October 26, 2016 18:01
-
-
Save du5rte/22829b560cc273e94b0ee00a87dc9085 to your computer and use it in GitHub Desktop.
Modernizr initializer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import './modernizr' | |
// Modernizr | |
// https://modernizr.com/docs | |
Modernizr.addTest('support', function() { | |
if ( | |
Modernizr.svg && | |
Modernizr.cssanimations && | |
Modernizr.boxsizing && | |
Modernizr.flexbox && | |
Modernizr.mediaqueries && | |
Modernizr.cssremunit && | |
Modernizr.csstransforms && | |
Modernizr.csstransitions | |
) { return true } else { return false } | |
}) | |
////// CUSTOMIZE HERE ////////////////////////////////////////////////////////// | |
if (Modernizr.support) { | |
console.info('Browser is Supported') | |
} else { | |
console.info('Browser is not Supported') | |
} | |
//////////////////////////////////////////////////////////////////////////////// |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment