MCPcopy Create free account
hub / github.com/TruthHun/BookStack / getFlashVersion

Function getFlashVersion

static/webuploader/webuploader.noimage.js:4649–4665  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4647
4648
4649 function getFlashVersion() {
4650 var version;
4651
4652 try {
4653 version = navigator.plugins[ 'Shockwave Flash' ];
4654 version = version.description;
4655 } catch ( ex ) {
4656 try {
4657 version = new ActiveXObject('ShockwaveFlash.ShockwaveFlash')
4658 .GetVariable('$version');
4659 } catch ( ex2 ) {
4660 version = '0.0';
4661 }
4662 }
4663 version = version.match( /\d+/g );
4664 return parseFloat( version[ 0 ] + '.' + version[ 1 ], 10 );
4665 }
4666
4667 function FlashRuntime() {
4668 var pool = {},

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected