mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-05 14:47:12 -04:00
new branch from master nice-pad-url
This commit is contained in:
parent
dfa106df03
commit
1a87ffacea
2 changed files with 10 additions and 9 deletions
|
@ -240,9 +240,9 @@ var padimpexp = (function()
|
|||
{
|
||||
pad = _pad;
|
||||
|
||||
//get /p/padname
|
||||
var pad_root_path = new RegExp(/.*\/p\/[^\/]+/).exec(document.location.pathname)
|
||||
//get http://example.com/p/padname
|
||||
//get /p/padname or /padname
|
||||
var pad_root_path = new RegExp(/.*\/[^\/]+/).exec(document.location.pathname)
|
||||
//get http://example.com/p/padname or http://example.com/padname
|
||||
var pad_root_url = document.location.href.replace(document.location.pathname, pad_root_path)
|
||||
|
||||
// build the export links
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue