summaryrefslogtreecommitdiff
path: root/lib/realtime.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/realtime.js')
-rw-r--r--lib/realtime.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/realtime.js b/lib/realtime.js
index a732711a..67a73e5d 100644
--- a/lib/realtime.js
+++ b/lib/realtime.js
@@ -240,7 +240,7 @@ function getNotenameFromSocket(socket) {
return socket.disconnect(true);
}
var hostUrl = url.parse(referer);
- var notename = hostUrl.pathname.split('/')[1];
+ var notename = config.urlpath ? hostUrl.pathname.slice(config.urlpath.length + 1, hostUrl.pathname.length).split('/')[1] : hostUrl.pathname.split('/')[1];
if (notename == config.featuresnotename) {
return notename;
}