Created
December 27, 2013 19:00
-
-
Save lighta971/8151170 to your computer and use it in GitHub Desktop.
Detect Flash enable in browser
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
try { | |
if( new ActiveXObject('ShockwaveFlash.ShockwaveFlash') ) flash = true; | |
}catch(e){ | |
if(navigator.mimeTypes ["application/x-shockwave-flash"] != undefined) flash = true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment