Revert "loleaflet: pass doc URI to WebSocket"

With this, no document loads.

This reverts commit 081ca0aa9f.
This commit is contained in:
Jan Holesovsky 2016-03-11 17:18:26 +01:00
parent aa806f0ec3
commit ca4f44099f

View file

@ -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;