JSFiddle - React, Tailwind, and code Playground
by javajack
HTML
Alert would popup : if browser has flash available and working, it would say true otherwise false.
JavaScript
// A $( document ).ready() block.
$(document).ready(function () {
var hasFlash = false;
try {
var fo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash');
if (fo) {
hasFlash = true;
}
} catch (e) {
if (navigator.mimeTypes && navigator.mimeTypes['application/x-shockwave-flash'] != undefined && navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin) {
hasFlash = true;
}
}
if(!hasFlash)
{
alert("Flash missing, Export will not work.");
}
});