Skip to content

Instantly share code, notes, and snippets.

@RobertFischer
Created March 7, 2016 21:00
Show Gist options
  • Save RobertFischer/156ae77234dcbb7b00b6 to your computer and use it in GitHub Desktop.
Save RobertFischer/156ae77234dcbb7b00b6 to your computer and use it in GitHub Desktop.
Flash detection with Modernizr and Check1.js
<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