uupaa.flashdetector.js

0.3.0 • Public • Published

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);
    }
  });
}

/uupaa.flashdetector.js/

    Package Sidebar

    Install

    npm i uupaa.flashdetector.js

    Weekly Downloads

    0

    Version

    0.3.0

    License

    MIT

    Last publish

    Collaborators

    • uupaa