Fixing errors with ws

This commit is contained in:
Kasper Rynning-Tønnesen
2015-11-23 21:32:26 +01:00
parent 29b590b797
commit f8ae19a869
2 changed files with 6 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@@ -43,7 +43,10 @@ var connection_options = {
'sync disconnect on unload':true
};
var socket = io.connect('http://dev.'+window.location.hostname+':8880', connection_options);
if(window.location.hostname == "zoff.no") add = "dev.zoff.no";
else add = "localhost";
var socket = io.connect('http://'+add+':8880', connection_options);
socket.on("get_list", function(){
socket.emit('list', chan.toLowerCase());
});