Skip to content

Instantly share code, notes, and snippets.

@phalkunz
Created March 18, 2013 21:59
Show Gist options
  • Save phalkunz/5191200 to your computer and use it in GitHub Desktop.
Save phalkunz/5191200 to your computer and use it in GitHub Desktop.
JavaScript: Flash detection
function isFlashInstalled() {
try {
if(new ActiveXObject('ShockwaveFlash.ShockwaveFlash')) return true;
}catch(e){
if(navigator.mimeTypes["application/x-shockwave-flash"] !== undefined) return true;
}
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment