Skip to content

uupaa/FlashDetector.js

Repository files navigation

FlashDetector.js Build Status

npm

Flash will detect whether the available.

This module made of WebModule.

Documentation

Browser, NW.js and Electron

<script src="lib/WebModule.js"></script>
<script src="lib/FlashDetector.js"></script>

window.onload = function() {
  var flash = new FlashDetector({
    swf: "swf/FlashDetector/bin/FlashDetector.swf",
    callback: function(flashEnabled) { // @arg Boolean
      console.log(flashEnabled === flash.enabled); // -> true
      alert(flash.enabled);
    }
  });
}

About

Flash will detect whether the available.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published