mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-05 14:47:12 -04:00
make the app mountable
This commit is contained in:
parent
9f0ca7cc44
commit
6188c88e4a
6 changed files with 49 additions and 20 deletions
3
static/js/pad2.js
Normal file → Executable file
3
static/js/pad2.js
Normal file → Executable file
|
@ -183,8 +183,9 @@ function handshake()
|
|||
//find out in which subfolder we are
|
||||
var resource = loc.pathname.substr(1, loc.pathname.indexOf("/p/")) + "socket.io";
|
||||
//connect
|
||||
console.log('create socket',url,resource)
|
||||
socket = io.connect(url, {
|
||||
resource: resource,
|
||||
resource: 'socket.io',
|
||||
'max reconnection attempts': 3
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue