mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 20:49:27 +00:00
A more accurate inRhino() function. The previous one failed to distinguish Rhino from LiveConnect.
This commit is contained in:
parent
df83b4d5da
commit
ab79e573d9
@ -56,15 +56,7 @@ function inSection(x)
|
||||
*/
|
||||
function inRhino()
|
||||
{
|
||||
try
|
||||
{
|
||||
java;
|
||||
return true;
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return (typeof defineClass == "function");
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -56,15 +56,7 @@ function inSection(x)
|
||||
*/
|
||||
function inRhino()
|
||||
{
|
||||
try
|
||||
{
|
||||
java;
|
||||
return true;
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return (typeof defineClass == "function");
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user