Skip to content

Instantly share code, notes, and snippets.

@rcstr
Created December 15, 2014 22:49
Show Gist options
  • Save rcstr/3476cce62123f6c09286 to your computer and use it in GitHub Desktop.
Save rcstr/3476cce62123f6c09286 to your computer and use it in GitHub Desktop.
var hasFlash = false;
try {
hasFlash = Boolean(new ActiveXObject('ShockwaveFlash.ShockwaveFlash'));
} catch (exception) {
hasFlash = ('undefined' != typeof navigator.mimeTypes['application/x-shockwave-flash']);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment