Author: kschenk
Date: Mon Apr 30 23:13:57 2012
New Revision: 1332462
URL: http://svn.apache.org/viewvc?rev=1332462&view=rev
Log:
kls -- maybe got this one fixed-- changes in mirrorbrain_getPlatformForMirro
Modified:
incubator/ooo/ooo-site/trunk/content/download/test/download_new_mirrorbrain.js
Modified:
incubator/ooo/ooo-site/trunk/content/download/test/download_new_mirrorbrain.js
URL:
http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/download/test/download_new_mirrorbrain.js?rev=1332462&r1=1332461&r2=1332462&view=diff
==============================================================================
---
incubator/ooo/ooo-site/trunk/content/download/test/download_new_mirrorbrain.js
(original)
+++
incubator/ooo/ooo-site/trunk/content/download/test/download_new_mirrorbrain.js
Mon Apr 30 23:13:57 2012
@@ -359,7 +359,7 @@ function mirrorbrain_getFileName( versio
*/
function mirrorbrain_getPlatformForMirror( schema ) {
var a = getArray();
- if ( navigator.platform != null ) {
+ if ( navigator.platform != null && String(navigator.platform) != "") {
if ( schema == "old" ) {
if ( navigator.platform.indexOf( "Win32" ) != -1 ) {
return ( a[3] == 'y' ) ?
"Win32Intel_install_wJRE" : "Win32Intel_install";
@@ -535,8 +535,12 @@ function mirrorbrain_getPlatformForMirro
return navigator.platform;
}
}
- } // odd, no schema ?
- return ( a[3] == 'y' ) ? "Win_x86_install-wJRE" : "Win_x86_install";
+ } // null or empty navigator.platform fallback to win regardless of
schema
+ if (schema != "aoo_incubating") {
+ return ( a[3] == 'y' ) ? "Win_x86_install-wJRE" :
"Win_x86_install";
+ } else {
+ return "Win_x86_install";
+ }
}
/*