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

Function getFlashVersion

static/webuploader/webuploader.flashonly.js:4219–4235  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4217
4218
4219 function getFlashVersion() {
4220 var version;
4221
4222 try {
4223 version = navigator.plugins[ 'Shockwave Flash' ];
4224 version = version.description;
4225 } catch ( ex ) {
4226 try {
4227 version = new ActiveXObject('ShockwaveFlash.ShockwaveFlash')
4228 .GetVariable('$version');
4229 } catch ( ex2 ) {
4230 version = '0.0';
4231 }
4232 }
4233 version = version.match( /\d+/g );
4234 return parseFloat( version[ 0 ] + '.' + version[ 1 ], 10 );
4235 }
4236
4237 function FlashRuntime() {
4238 var pool = {},

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected