Author: sergeyhalipov
Date: 2007-05-07 10:27:06 -0400 (Mon, 07 May 2007)
New Revision: 674
Modified:
trunk/richfaces/common/src/main/resources/org/richfaces/renderkit/html/scripts/browser_info.js
Log:
Added Safari and Konqueror to browsers list. Firefox is renamed to Iceweasel in some Linux
distribs.
Modified:
trunk/richfaces/common/src/main/resources/org/richfaces/renderkit/html/scripts/browser_info.js
===================================================================
---
trunk/richfaces/common/src/main/resources/org/richfaces/renderkit/html/scripts/browser_info.js 2007-05-07
14:06:02 UTC (rev 673)
+++
trunk/richfaces/common/src/main/resources/org/richfaces/renderkit/html/scripts/browser_info.js 2007-05-07
14:27:06 UTC (rev 674)
@@ -6,12 +6,17 @@
if (navigator.userAgent.toLowerCase().indexOf("msie") >= 0 ||
navigator.userAgent.toLowerCase().indexOf("explorer") >= 0)
return "MSIE";
- if (navigator.userAgent.toLowerCase().indexOf("firefox") >= 0)
+ if (navigator.userAgent.toLowerCase().indexOf("firefox") >= 0 ||
+ navigator.userAgent.toLowerCase().indexOf("iceweasel") >= 0)
return "FF";
if (navigator.userAgent.toLowerCase().indexOf("opera") >= 0)
return "OPERA";
if (navigator.userAgent.toLowerCase().indexOf("netscape") >= 0)
return "NETSCAPE";
+ if (navigator.userAgent.toLowerCase().indexOf("safari") >= 0)
+ return "SAFARI";
+ if (navigator.userAgent.toLowerCase().indexOf("konqueror") >= 0)
+ return "KONQUEROR";
return "OTHER";
}
Show replies by date