Working mongoose version

This commit is contained in:
Kasper Rynning-Tønnesen
2017-02-21 17:07:42 +01:00
parent 3006237805
commit 87d74c0100
7 changed files with 59 additions and 45 deletions

View File

@@ -106,8 +106,10 @@ $().ready(function(){
$(".connect_error").fadeOut(function(){
$(".connect_error").remove();
Materialize.toast("Connected!", 2000, "green lighten");
});
if((Crypt.get_pass(chan.toLowerCase()) !== undefined && Crypt.get_pass(chan.toLowerCase()) !== "")){
socket.emit("password", {password: Crypt.crypt_pass(Crypt.get_pass(chan.toLowerCase())), channel: chan.toLowerCase()});
}
});
}
});
@@ -362,6 +364,7 @@ function init(){
if(socket === undefined || Helper.mobilecheck()){
no_socket = false;
socket = io.connect(''+add+':8080', connection_options);
window.socket = socket;
}
Crypt.init();