Created
April 17, 2013 17:16
-
-
Save vishaltelangre/5406090 to your computer and use it in GitHub Desktop.
Check Adobe flash plugin support for browser
This file contains hidden or 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
// check flash support for visitor browser | |
function isFlashSupported() { | |
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; | |
} | |
} | |
return hasFlash; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment