You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by bu...@apache.org on 2014/06/09 22:38:33 UTC

svn commit: r912019 - in /websites/staging/ooo-site/trunk: cgi-bin/ content/ content/download/download.js

Author: buildbot
Date: Mon Jun  9 20:38:33 2014
New Revision: 912019

Log:
Staging update by buildbot for ooo-site

Modified:
    websites/staging/ooo-site/trunk/cgi-bin/   (props changed)
    websites/staging/ooo-site/trunk/content/   (props changed)
    websites/staging/ooo-site/trunk/content/download/download.js

Propchange: websites/staging/ooo-site/trunk/cgi-bin/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Mon Jun  9 20:38:33 2014
@@ -1 +1 @@
-1601501
+1601503

Propchange: websites/staging/ooo-site/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Mon Jun  9 20:38:33 2014
@@ -1 +1 @@
-1601501
+1601503

Modified: websites/staging/ooo-site/trunk/content/download/download.js
==============================================================================
--- websites/staging/ooo-site/trunk/content/download/download.js (original)
+++ websites/staging/ooo-site/trunk/content/download/download.js Mon Jun  9 20:38:33 2014
@@ -788,10 +788,15 @@ function getLinkSel() {
 function getPlatform() {
 	// For more help or data see: "http://www.useragentstring.com".
 
-	var av		   = navigator.appVersion.toLowerCase();	// Get the application version in lower case.
-	var os		   = navigator.platform.toLowerCase();		// Get the platform string in lower case.
-	var ua		   = navigator.userAgent.toLowerCase();		// Get the user agent string in lower case.
-	var ve		   = navigator.vendor.toLowerCase();		// Get the vendor string in lower case.
+	if( navigator.appVersion )
+		var av	   = navigator.appVersion.toLowerCase();	// Get the application version in lower case.
+	if( navigator.platform )
+		var os	   = navigator.platform.toLowerCase();		// Get the platform string in lower case.
+	if( navigator.userAgent )
+		var ua	   = navigator.userAgent.toLowerCase();		// Get the user agent string in lower case.
+	if( navigator.vendor )
+		var ve	   = navigator.vendor.toLowerCase();		// Get the vendor string in lower case.
+
 	UI_PLATFORM	   = "";					// Delete previously set string.
 	UI_PLATFORM_NO_SUP = "";					// Delete previously set string.
 	PLATFORM	   = "";					// Delete previously set string.
@@ -820,10 +825,14 @@ function getPlatform() {
 		// Recognized but *not supported* platforms/OS, set $UI_PLATFORM_NO_SUP to show it to the user.
 
 		// Mobile devices.
+		if( ve )
+		    if( ua.indexOf( "android"		) !== -1 )
+			if( ua.indexOf( "nexus"		) !== -1 &&
+			    ve.indexOf( "google"	) !== -1 )	UI_PLATFORM_NO_SUP	= "Google Nexus";
+
 		if( ua.indexOf( "android"		) !== -1 )
-		    if( ua.indexOf( "nexus"		) !== -1 &&
-			ve.indexOf( "google"		) !== -1 )	UI_PLATFORM_NO_SUP	= "Google Nexus";
-		    else if( ua.indexOf( "moble"	) !== -1 )	UI_PLATFORM_NO_SUP	= "Mobile Devices (Android)";
+		    if( ua.indexOf( "mobile"		) !== -1 )	UI_PLATFORM_NO_SUP	= "Mobile Devices (Android)";
+
 		if( os.indexOf( "arm"			) !== -1 )	UI_PLATFORM_NO_SUP	= "Mobile Devices (ARM processor)";
 		if( ua.indexOf( "blackberry"		) !== -1 )	UI_PLATFORM_NO_SUP	= "Blackberry Smartphones";
 		if( ua.indexOf( "brew"			) !== -1 )	UI_PLATFORM_NO_SUP	= "Smartphones (BREW)";