Skip to content

Node.js based forum software built for the modern web

fixing #1177

Julian Lam6fb393de780a
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,