Created
May 12, 2014 17:01
-
-
Save lukehedger/0fbac154119b5eb9324f to your computer and use it in GitHub Desktop.
Detect Flash support
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
detectFlash: -> | |
if navigator.plugins["Shockwave Flash"] | |
return true | |
return false | |
# usage: | |
# if detectFlash() | |
# console.log "Flash supported" | |
# else | |
# console.log "No Flash" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment