[Libreoffice-commits] online.git: loleaflet/src

Jan Holesovsky kendy at collabora.com
Fri Mar 11 16:23:35 UTC 2016


 loleaflet/src/core/Socket.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ca4f44099f3a58bd10a72fc650182349249e25dd
Author: Jan Holesovsky <kendy at collabora.com>
Date:   Fri Mar 11 17:18:26 2016 +0100

    Revert "loleaflet: pass doc URI to WebSocket"
    
    With this, no document loads.
    
    This reverts commit 081ca0aa9f7a8af0833f5ec04f4169dcb85b4a7b.

diff --git a/loleaflet/src/core/Socket.js b/loleaflet/src/core/Socket.js
index 3a0f61a..d1d5ad9 100644
--- a/loleaflet/src/core/Socket.js
+++ b/loleaflet/src/core/Socket.js
@@ -9,7 +9,7 @@ L.Socket = L.Class.extend({
 	initialize: function (map) {
 		this._map = map;
 		try {
-			this.socket = new WebSocket(map.options.server + map.options.doc);
+			this.socket = new WebSocket(map.options.server);
 		} catch (e) {
 			this.fire('error', {msg: _('Socket connection error'), cmd: 'socket', kind: 'failed', id: 3});
 			return null;


More information about the Libreoffice-commits mailing list