incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ksch...@apache.org
Subject svn commit: r1332442 - /incubator/ooo/ooo-site/trunk/content/download/test/download_new_dl.js
Date Mon, 30 Apr 2012 22:09:35 GMT
Author: kschenk
Date: Mon Apr 30 22:09:34 2012
New Revision: 1332442

URL: http://svn.apache.org/viewvc?rev=1332442&view=rev
Log:
kls -- try fixing navigator.platform comparison

Modified:
    incubator/ooo/ooo-site/trunk/content/download/test/download_new_dl.js

Modified: incubator/ooo/ooo-site/trunk/content/download/test/download_new_dl.js
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/download/test/download_new_dl.js?rev=1332442&r1=1332441&r2=1332442&view=diff
==============================================================================
--- incubator/ooo/ooo-site/trunk/content/download/test/download_new_dl.js (original)
+++ incubator/ooo/ooo-site/trunk/content/download/test/download_new_dl.js Mon Apr 30 22:09:34
2012
@@ -459,7 +459,7 @@ function apache_getLink(version, schema)
  * independant from mirror-system
  */
 function getPlatform() {
-	if ( navigator.platform != null ) {
+	if ( navigator.platform != null ||  navigator.platform != "" ) {
 		if ( navigator.platform.indexOf( "Win32" ) != -1 ) {
 			return "Windows";
 		} else if ( navigator.platform.indexOf( "Win64" ) != -1 ) {
@@ -522,7 +522,7 @@ function getPlatform() {
 /* for customizing platforms for various schemas/release */
 function getPlatform(schema) {
 	if (schema == "aoo_incubating") {
-	if ( navigator.platform != null ) {
+	if ( navigator.platform != null ||  navigator.platform != "" ) {
 		if ( navigator.platform.indexOf( "Win32" ) != -1 ) {
 			return "Windows";
 		} else if ( navigator.platform.indexOf( "Win64" ) != -1 ) {



Mime
View raw message