UNPKG

amos-tool

Version:

amos ui tool

24 lines (22 loc) 665 B
"use strict"; function checkFlash() { var a = 0, e = 0, t = null; if (document.all || document.getElementsByTagName("*")) { try { if (t = new ActiveXObject("ShockwaveFlash.ShockwaveFlash")) { a = 1; var n = t.GetVariable("$version"); e = parseInt(n.split(" ")[0].split(",")[0]); } } catch (a) {} if (!t && navigator.plugins && navigator.plugins.length > 0 && (t = navigator.plugins["Shockwave Flash"])) { a = 1; for (var s = t.description.split(" "), i = 0; i < s.length; i++) isNaN(parseInt(s[i])) || (e = parseInt(s[i])); } } return { f: a, v: e }; } module.exports = checkFlash;