Here's an oddity, as observed in an old PowerMac running OS9 and MSIE 5: Flash detection works UNTIL the correction to line 459 is applied (replacing = with ==) then it stops working! The reason must be that MSIE 5 on Macs is more standard than MSIE on Windows platforms.
After some experimentation I changed the opening lines of the hasFlashPlugin function as shown below. This works on the above configuration. I also hope it works on newer Macs with the Safari browser but I am waiting for feedback from my customer before I can confirm this. Any comments?
-----------------
(isEmpty(obj) ? brs=navigator.userAgent.toLowerCase() : brs=obj);
var f=new Array("0", "0");
var brwEng=getBrowser(obj)[2];
var opSys=getOS(obj)[0];
//if (getBrowser(obj)[2]!="msie") {
if ( (brwEng=="gecko") || (brwEng=="opera") || (brwEng=="khtml") || (brwEng=="mozold") || (brwEng=="safari") || (opSys=="macosx") || (opSys=="macclassic") ) {
// Non Windows-IE Flash plug-in detection
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Here's an oddity, as observed in an old PowerMac running OS9 and MSIE 5: Flash detection works UNTIL the correction to line 459 is applied (replacing = with ==) then it stops working! The reason must be that MSIE 5 on Macs is more standard than MSIE on Windows platforms.
After some experimentation I changed the opening lines of the hasFlashPlugin function as shown below. This works on the above configuration. I also hope it works on newer Macs with the Safari browser but I am waiting for feedback from my customer before I can confirm this. Any comments?
-----------------
(isEmpty(obj) ? brs=navigator.userAgent.toLowerCase() : brs=obj);
var f=new Array("0", "0");
var brwEng=getBrowser(obj)[2];
var opSys=getOS(obj)[0];
//if (getBrowser(obj)[2]!="msie") {
if ( (brwEng=="gecko") || (brwEng=="opera") || (brwEng=="khtml") || (brwEng=="mozold") || (brwEng=="safari") || (opSys=="macosx") || (opSys=="macclassic") ) {
// Non Windows-IE Flash plug-in detection