Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Detect Flash support
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