summaryrefslogtreecommitdiff
path: root/lib/realtime.js
diff options
context:
space:
mode:
authorCheng-Han, Wu2016-02-16 20:08:44 -0800
committerCheng-Han, Wu2016-02-16 20:08:44 -0800
commitb2b1be3dda406312add39997ad8bd9494f20b7f8 (patch)
tree997403359ffc0f585fa52752c399ce87287222c3 /lib/realtime.js
parent3f2f063e9b6c6d36169f6acefc27df87d0bd176b (diff)
Support set url path and use relative url, move raphael to bower and fixed minor issue in history
Diffstat (limited to '')
-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;
}