A more accurate inRhino() function. The previous one failed to distinguish Rhino from LiveConnect.

This commit is contained in:
pschwartau%netscape.com 2002-11-08 22:42:25 +00:00
parent df83b4d5da
commit ab79e573d9
2 changed files with 2 additions and 18 deletions

View File

@ -56,15 +56,7 @@ function inSection(x)
*/
function inRhino()
{
try
{
java;
return true;
}
catch(e)
{
return false;
}
return (typeof defineClass == "function");
}
/*

View File

@ -56,15 +56,7 @@ function inSection(x)
*/
function inRhino()
{
try
{
java;
return true;
}
catch(e)
{
return false;
}
return (typeof defineClass == "function");
}
/*