Created
March 7, 2016 21:00
-
-
Save RobertFischer/156ae77234dcbb7b00b6 to your computer and use it in GitHub Desktop.
Flash detection with Modernizr and Check1.js
This file contains hidden or 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
<html> | |
<head> | |
<script src="check1.js"></script> | |
<script> | |
var modzrFlash; | |
Check1( | |
"hasFlash", | |
"https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js", | |
function() { | |
return Modernizr.flash; | |
}, | |
function(result) { | |
modzrFlash = result; | |
} | |
); | |
</script> <!-- IMPORTANT: Needs to be its own script tag. --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment