From 6fb393de780a173eeb35ee73f499b376c0d67b9b Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Sat, 8 Mar 2014 16:50:32 -0500 Subject: [PATCH] fixing #1177 --- public/src/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/app.js b/public/src/app.js index 2308f440b9..90f6e63743 100644 --- a/public/src/app.js +++ b/public/src/app.js @@ -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,