You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ma...@apache.org on 2014/06/06 00:39:31 UTC
svn commit: r1600785 -
/openoffice/ooo-site/trunk/content/download/test/download_droplist.js
Author: marcus
Date: Thu Jun 5 22:39:30 2014
New Revision: 1600785
URL: http://svn.apache.org/r1600785
Log:
Improved browser data recognition
Modified:
openoffice/ooo-site/trunk/content/download/test/download_droplist.js
Modified: openoffice/ooo-site/trunk/content/download/test/download_droplist.js
URL: http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/download/test/download_droplist.js?rev=1600785&r1=1600784&r2=1600785&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/test/download_droplist.js (original)
+++ openoffice/ooo-site/trunk/content/download/test/download_droplist.js Thu Jun 5 22:39:30 2014
@@ -1474,7 +1474,8 @@ function getPlatform() {
};
}
- if( os ) {
+ // If the browser's user agent string is set with something, try to recognize its content.
+ if( ua !== "" ) {
// Recognized but *not supported* platforms/OS, set $UI_PLATFORM_NO_SUP to show it to the user.
// Mobile devices.
@@ -1618,10 +1619,10 @@ function getPlatform() {
}
}
- // If nothing was recognized until now, set $UI_PLATFORM to show it to the user.
+ // If nothing was recognized until now, set $UI_PLATFORM_NO_SUP to show it to the user.
if( UI_PLATFORM === "" ) {
- UI_PLATFORM = "unknown platform/OS";
- ERROR = true;
+ UI_PLATFORM_NO_SUP = "unknown operating system / platform";
+ ERROR = true;
}
return PLATFORM;