From 57514f875a16604491ec73c3a8bfbfe6370121bf Mon Sep 17 00:00:00 2001 From: Shireesh Anjal Date: Sun, 7 Aug 2011 17:07:22 +0530 Subject: Modified the html to correctly redirect to 32 bit windows url in case the browser is running in wow64 (32 bit windows running on 64 bit windows) mode. --- src/com.gluster.storage.management.gateway/WebContent/index.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/com.gluster.storage.management.gateway/WebContent') diff --git a/src/com.gluster.storage.management.gateway/WebContent/index.html b/src/com.gluster.storage.management.gateway/WebContent/index.html index 4343d66c..9b7e28cd 100644 --- a/src/com.gluster.storage.management.gateway/WebContent/index.html +++ b/src/com.gluster.storage.management.gateway/WebContent/index.html @@ -54,7 +54,12 @@ // following code verifies this by looking at text WOW64/Win64 in userAgent if ( navigator.userAgent != null ) { var userAgent = navigator.userAgent.toLowerCase(); - if( userAgent.indexOf ( "wow64" ) != -1 || userAgent.indexOf ( "win64" ) != -1 || userAgent.indexOf ( "x64" ) != -1 ) { + if( userAgent.indexOf ( "wow64" ) != -1 ) { + // browser running in compatibility mode (32 bit) inside a 64 bit Windows OS + // In such cases, we should re-direct to the 32 bit URL as the java webstart + // plug-in in the browser will also be 32 bit. + arch = "x86"; + } else if ( userAgent.indexOf ( "win64" ) != -1 || userAgent.indexOf ( "x64" ) != -1 ) { arch = "x86_64"; } } -- cgit