[Libreoffice-commits] online.git: loleaflet/src
Henry Castro
hcastro at collabora.com
Thu Sep 29 21:55:54 UTC 2016
loleaflet/src/core/Socket.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit b4ba3c9c553ac836007b2f1c3cb4a45280b61673
Author: Henry Castro <hcastro at collabora.com>
Date: Thu Sep 29 17:57:17 2016 -0400
loleaflet: fix mege mistakes
diff --git a/loleaflet/src/core/Socket.js b/loleaflet/src/core/Socket.js
index 937af32..9a6579e 100644
--- a/loleaflet/src/core/Socket.js
+++ b/loleaflet/src/core/Socket.js
@@ -12,7 +12,7 @@ L.Socket = L.Class.extend({
if (map.options.permission) {
map.options.docParams['permission'] = map.options.permission;
}
- this.socket = new WebSocket(map.options.server + '/lool/ws/' + map.options.doc + '?' + $.param(map.options.docParams));
+ this.socket = new WebSocket(map.options.server + '/lool/' + encodeURIComponent(map.options.doc + '?' + $.param(map.options.docParams)) + '/ws');
this.socket.onerror = L.bind(this._onSocketError, this);
this.socket.onclose = L.bind(this._onSocketClose, this);
this.socket.onopen = L.bind(this._onSocketOpen, this);
More information about the Libreoffice-commits
mailing list