This commit is contained in:
Julian Lam
2014-03-08 16:50:32 -05:00
parent f00f7c8818
commit 6fb393de78

View File

@@ -29,7 +29,7 @@ var socket,
socket = io.connect('', {
'max reconnection attempts': max_reconnection_attemps,
'reconnection delay': reconnection_delay,
resource: RELATIVE_PATH.slice(1) + '/socket.io'
resource: RELATIVE_PATH.length ? RELATIVE_PATH.slice(1) + '/socket.io' : 'socket.io'
});
var reconnecting = false,