Have rolled back advanced java detection until the framework can support external asset injection. Issue #32 & Issue #155
git-svn-id: https://beef.googlecode.com/svn/trunk@536 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
BIN
demos/jvc.class
BIN
demos/jvc.class
Binary file not shown.
@@ -1,28 +0,0 @@
|
||||
import java.applet.Applet;
|
||||
|
||||
public class jvc extends Applet
|
||||
{
|
||||
private String m_ver;
|
||||
private String m_ven;
|
||||
|
||||
public void init()
|
||||
{
|
||||
m_ver = System.getProperty("java.version");
|
||||
m_ven = System.getProperty("java.vendor");
|
||||
}
|
||||
|
||||
public boolean isRunning()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public String getVersion()
|
||||
{
|
||||
return m_ver;
|
||||
}
|
||||
|
||||
public String getVendor()
|
||||
{
|
||||
return m_ven;
|
||||
}
|
||||
}
|
||||
@@ -242,19 +242,8 @@ beef.browser = {
|
||||
* @example: if(beef.browser.hasJava()) { ... }
|
||||
*/
|
||||
hasJava: function() {
|
||||
if(window.navigator.javaEnabled()) {
|
||||
var jvc = document.createElement('applet');
|
||||
var running = false;
|
||||
jvc.id = 'beef_jvc';
|
||||
jvc.classid = 'jvc.class';
|
||||
if (document.body.appendChild(jvc))
|
||||
{
|
||||
try {
|
||||
running = jvc.isRunning();
|
||||
} catch (e) {}
|
||||
document.body.removeChild(jvc);
|
||||
}
|
||||
return running;
|
||||
if(window.navigator.javaEnabled && window.navigator.javaEnabled()) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user