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

Function getFlashVersion

static/webuploader/webuploader.withoutimage.js:4607–4623  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4605
4606
4607 function getFlashVersion() {
4608 var version;
4609
4610 try {
4611 version = navigator.plugins[ 'Shockwave Flash' ];
4612 version = version.description;
4613 } catch ( ex ) {
4614 try {
4615 version = new ActiveXObject('ShockwaveFlash.ShockwaveFlash')
4616 .GetVariable('$version');
4617 } catch ( ex2 ) {
4618 version = '0.0';
4619 }
4620 }
4621 version = version.match( /\d+/g );
4622 return parseFloat( version[ 0 ] + '.' + version[ 1 ], 10 );
4623 }
4624
4625 function FlashRuntime() {
4626 var pool = {},

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected