mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 06:34:39 -04:00
Support set url path and use relative url, move raphael to bower and fixed minor issue in history
This commit is contained in:
parent
3f2f063e9b
commit
b2b1be3dda
22 changed files with 222 additions and 198 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue