cs requires uname

This commit is contained in:
2017-03-17 22:42:50 +01:00
parent f88a0abb0b
commit b0732b1c04
6 changed files with 2071 additions and 8 deletions

View File

@ -1,4 +1,5 @@
var chatscript = function (){
var chatinit = function() {
var pvuis;
var audio = new Audio('/sounds/bell.mp3');
@ -85,7 +86,7 @@ var chatscript = function (){
);
}
var onUserDisconnected = function (cxid, username) {
var onUserDisconnected = function (cxid) {
$('#userlist li').filter(function () {
var nids = $(this).data("cxids").filter(function () {
return $(this) !== cxid
@ -172,5 +173,7 @@ $.connection.hub.disconnected(function () {
onDisCx();
});
$(window).unload(function () { chat.server.abort(); delete chat; });
}()
$(window).unload(function () { chat.server.abort(); });
};
chatinit(this);