Created
September 30, 2014 05:54
-
-
Save minwe/e7f6a3055ef44af1b5ee to your computer and use it in GitHub Desktop.
detect flash support
This file contains 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
var hasFlash = false; | |
try { | |
var fo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash'); | |
if (fo) { | |
hasFlash = true; | |
} | |
} catch (e) { | |
if (navigator.mimeTypes | |
&& navigator.mimeTypes['application/x-shockwave-flash'] != undefined | |
&& navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin) { | |
hasFlash = true; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://www.featureblend.com/flash_detect_1-0-4/flash_detect.js