Skip to content

Instantly share code, notes, and snippets.

@morgondag
Created January 21, 2014 14:11
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 morgondag/8540802 to your computer and use it in GitHub Desktop.
Save morgondag/8540802 to your computer and use it in GitHub Desktop.
do we got old crappy flash?
var hasFlash = false;
try {
var fo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash');
if(fo) hasFlash = true;
}catch(e){
if(navigator.mimeTypes ["application/x-shockwave-flash"] != undefined) hasFlash = true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment