From e5e4f3533c86abcc6dfc8bda2dcd8b002a7a372d Mon Sep 17 00:00:00 2001 From: "timm%netscape.com" Date: Tue, 4 Aug 1998 01:05:37 +0000 Subject: [PATCH] fix getBrowserVersionNumber --- cmd/dialup/as_html/util.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/dialup/as_html/util.js b/cmd/dialup/as_html/util.js index 16e4eefb731..22a5a108f3f 100644 --- a/cmd/dialup/as_html/util.js +++ b/cmd/dialup/as_html/util.js @@ -138,12 +138,12 @@ function getAcctSetupFilename( object ) function getBrowserVersionNumber() { - var theAgent = navigator.userAgent; - var x = theAgent.indexOf( "/" ); - var theVersion = "unknown"; + var agent = navigator.userAgent; + var x = agent.indexOf( "/" ); + var version = "unknown"; if ( x >= 0 ) - var theVersion = theAgent.substring( x + 1, theAgent.length ); - return theVersion; + version = agent.substring( x + 1, agent.length ); + return version; } function getBrowserMajorVersionNumber() @@ -151,7 +151,7 @@ function getBrowserMajorVersionNumber() var version = getBrowserVersionNumber(); if ( version != "unknown" ) { - var x = theVersion.indexOf( "." ); + var x = version.indexOf( "." ); if ( x > 0 ) version = version.substring( 0, x ); }