Whether or not the browser has the Adobe Flash plugin enabled.
JavaScript
Switch branches/tags
Nothing to show
Pull request Compare This branch is 3 commits ahead of yields:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
History.md
Makefile
Readme.md
component.json
index.js

Readme.md

hasflash

Whether or not the browser has flash plugin enabled.

Installation

$ component install yields/hasflash

API

hasflash()

checks the navigator plugins, navigator mime types and then tries to construct a new ActiveXObject with ShockwaveFlash.

if all above fail the function returns false.

hasflash();
// > boolean

License

MIT