summaryrefslogtreecommitdiff
path: root/loleaflet/js/global.js
AgeCommit message (Collapse)AuthorFilesLines
2020-09-30Use the CanvasTileLayer for all rendering.Jan Holesovsky1-4/+0
Fixes problems particularly with the new Chrome where the original approach to tiles can be causing blurry text. Change-Id: Icf598df0e997d493b111fad1c59e7dcb5f376801 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103681 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-09-17calc canvas: More reliable check for the desktop / mobile / tablet.Jan Holesovsky1-0/+4
Change-Id: I7b1ea581051608e020fd6e4615be9bc9b919c01f
2020-08-07android: Chromebook is not a touch device, avoid using Hammer there.Jan Holesovsky1-5/+4
This fixes the mouse wheel - now it works on the chromebooks. Change-Id: I5bf2a7e1ae397ef171221ac58172940bb43cbb3c Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100227 Tested-by: Jenkins Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-07-27loleaflet: move constant parameters to global initializationHenry Castro1-7/+16
This should be initialized when html is loading Change-Id: Ief99d3a613ddaa86caaf5285795a97e3f56787b5 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99511 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Tested-by: Jenkins Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-07-16android: Actually use the Desktop browser UI for Chromebooks.Jan Holesovsky1-0/+15
Chromebooks are not touch devices, the desktop browser-like UI makes much more sense there. Change-Id: Id963929e781f2baff32a65e0437afb4dfd8460a3 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98865 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Tested-by: Jenkins Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-06-29Fix url errors on backgroundImage in css files for proxymert1-12/+23
Current replacing url strings method works fine, however, it does not cover all the rules for cases like when @media or @import are used. They have a subset of their own rules which must be covered as well. Change-Id: Ib10f7cc361aea5cd3b855f64e3a64566a6c51a12 Signed-off-by: mert <mert.tumer@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/online/+/97071 Tested-by: Jenkins Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-06-09Proxy: detect un-responsive sockets & close after 30secs.Michael Meeks1-13/+20
Also: + fix double poll timer in error + remove & rename incorrect interval timer names Change-Id: Idfae44c0a388312b248c78fc9ad04fe3725990b6 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/95910 Tested-by: Jenkins Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-06-09Proxy: don't implement a magic re-connecting socket.Michael Meeks1-19/+16
Websockets don't magically re-connect, so we shouldn't either. Also avoid starting our send interval timer until we've opened to simplify. Change-Id: Id71049da2d4b4d0ac2f38a3d7410f2446d04f0b1 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/95906 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Tested-by: Jenkins Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-06-08Proxy: handle server startup / un-responsive DocumentBroker creation.Michael Meeks1-5/+41
If our 'open' request fails - then we could get this loop: loadDocument (proxy.php?req=/loleaflet/d2d049224/src/map/Map.js:318) _activate (proxy.php?req=/loleaflet/d2d049224/src/map/Map.js:1233) _onSocketClose (proxy.php?req=/loleaflet/d2d049224/src/core/Socket.js:1045) _signalErrorClose (proxy.php?req=/loleaflet/0acb00fc2/loleaflet.html?file_path=file:///tmp/copy.odt:576) (anonymous) (proxy.php?req=/loleaflet/0acb00fc2/loleaflet.html?file_path=file:///tmp/copy.odt:688) load (async) getSessionId (proxy.php?req=/loleaflet/0acb00fc2/loleaflet.html?file_path=file:///tmp/copy.odt:682) global.ProxySocket (proxy.php?req=/loleaflet/0acb00fc2/loleaflet.html?file_path=file:///tmp/copy.odt:753) global.createWebSocket (proxy.php?req=/loleaflet/0acb00fc2/loleaflet.html?file_path=file:///tmp/copy.odt:798) connect (proxy.php?req=/loleaflet/d2d049224/src/core/Socket.js:52) loadDocument (proxy.php?req=/loleaflet/d2d049224/src/map/Map.js:318) Which would hammer the server with large numbers of requests triggering DoS protection in some cases, so: 1. only allow one 'open' in-flight at a time 2. global time-accounting to not allow >1 new ProxySocket every 250ms 3. handle error returns from 'open' correctly. Change-Id: I1692acd72a445ebc70a83c66a2e802a532c66e21 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/95837 Tested-by: Jenkins Tested-by: Michael Meeks <michael.meeks@collabora.com> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-06-08Proxy: only send close if we were connected.Michael Meeks1-1/+3
Change-Id: I4b80adb1d4f44efc02b784cad10f27e458921449 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/95836 Tested-by: Jenkins Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-06-04leaflet: Remove old jquery-fixer code.gokaysatir1-8/+0
Change-Id: I15796cdbb21295215699eefe4ecbe25f37d4e567 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/95509 Tested-by: Jenkins Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-06-02wsd: leaflet: fix reuse_cookies supportAshod Nakashian1-2/+9
reuse_cookies is now always encoded in the URL. And, there is no need for the WOPISrc in the three cases in this patch, and by passing the DocumentURI proper (without /ws?WOPISrc=...) ensures that all query-params in the DocumentURI are properly processed. This fixes the reuse_cookies regression where it wasn't passed to WOPI requests. Change-Id: I8dccfb09a7b4102d10c1aef24f43b699a07bfed8 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/95293 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2020-05-29Proxy: calm down console debug churn for now.Michael Meeks1-6/+6
Change-Id: If31ea5e447e90ad21d07e972eaeb556972b9447a Reviewed-on: https://gerrit.libreoffice.org/c/online/+/95066 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Tested-by: Jenkins Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-05-25Proxy: horrible re-implementation of array / string bits for IE11.Michael Meeks1-6/+53
Change-Id: Iccb2f98b5529a2f923dba8763b17f895067c1e0c Reviewed-on: https://gerrit.libreoffice.org/c/online/+/94808 Tested-by: Jenkins Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-05-22leaflet: smart throttling of RichProxy pollingAshod Nakashian1-4/+79
When there is no data coming in from WSD, we slow down the frequency of invoking RichProxy. Supports recovering from errors and server restarts or document unloading (i.e. when the session is invalid). We don't invoke RichProxy more than 40 times a second (i.e. with 25ms interval) and we slow down when the last data was received 3x longer than the polling interval. The current decay rate is 15%. That is, we throttle to 1.15x the last interval. This brings us down from 25ms to 500ms in about 4 seconds, which is very reasonable. However, when we want to send data, or when we do receive any data, we immediately maximize the frequency so we can communicate as fast as possible and reduce the user-visible latency. Notice that when we get some data (without having sent anything recently) it implies activity from another user, so we do want to get their changes in real-time. This is why we reduce the polling frequency gradually, but increase it abruptly. The parameters of the algorithm are configurable directly in the code, but the current defaults are very reasonable. Change-Id: I0b9fd6db73caa35853fe6d8077bef66934de679c Reviewed-on: https://gerrit.libreoffice.org/c/online/+/94654 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Tested-by: Jenkins Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-05-21Proxy: handle connection failure during session gracefully.Michael Meeks1-4/+16
Change-Id: Ib8bda31352de6fea406b32b86bc134ee2a7841d8 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/94652 Tested-by: Jenkins Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-05-20leaflet: restore reuse_cookies to the urlAshod Nakashian1-0/+3
Reuse cookies are captured on file-serving the loleaflet.html, whereupon they are injected into it before serving as part of the document load url. They show up as &reuse_cookies= in the url embedded in loleaflet.html. When loading the document, and creating the session, the cookies received via reuse_cookies is stored and set in each WOPI http invocation. This restores creating reuse_cookies in the URL. It was inadvertently dropped after some cleanup. Change-Id: I6de8ddb58e7f43566a08c22327dbc4b7a1207388 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/94472 Tested-by: Andras Timar <andras.timar@collabora.com> Tested-by: Jenkins Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-05-20Add "Slow Proxy" string in Aboutmert1-0/+1
Change-Id: I1c04ef295bdecf782e41d8e299adc67df4f87390 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/94581 Tested-by: Jenkins Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-05-13Proxy: significantly simplify proxy socket.Michael Meeks1-42/+27
This avoids needing long-term wait sockets which consume server-side resources & can block other requests. Change-Id: I0909f49e16c5ce2315b9980cdf34fa4e370e3abc Reviewed-on: https://gerrit.libreoffice.org/c/online/+/94150 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-05-13Proxy: re-arrange URL structure & document it better.Michael Meeks1-11/+25
Also implement 'close' during browser unload. Change-Id: Ie2072c14cf863876c633b3371b86016367ad4992 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/94089 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-04-30Proxy: tolerate missing CSS files during CSS re-write.Michael Meeks1-1/+7
Change-Id: I3d5af4950962391466192fdb391915d02f8813ed Reviewed-on: https://gerrit.libreoffice.org/c/online/+/93221 Tested-by: Michael Meeks <michael.meeks@collabora.com> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-04-29forward the device form factor of the client on a new view requestMarco Cecchetti1-0/+17
This patch allows the lok core to know about the device form facor of the client requesting the creation of a new view, immediately instead of a later time. When a request for a new view is sent a 'deviceFormFactor' parameter is appended to the message. This parameter can have one of the following values: 'desktop', 'tablet','mobile' and is forwarded to the lok core. Change-Id: I21739ddb8c43c960164b3c625e4cf0a80f4616a4 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92691 Tested-by: Marco Cecchetti <marco.cecchetti@collabora.com> Reviewed-by: Marco Cecchetti <marco.cecchetti@collabora.com>
2020-04-28Proxy: improving parsing & URL passing for websocket to fix connect-src.Michael Meeks1-1/+1
Change-Id: Id017c46e755eb14bc25d18be450b6100ff6bed92 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/93094 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-04-28Improve error handling on failure to fetch session id.Michael Meeks1-3/+13
Change-Id: I8314fad3566f70abab78a6592a99d70597e40706 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/93078 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-04-24Proxy: adapt the path with a serial for each request.Michael Meeks1-1/+1
Helps to debug, and avoids the webserver getting unhappy. Change-Id: I632550f2ad26eef973cd036422f9f1a73d0f0764 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92817 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-24Proxy: marshal message serial too.Michael Meeks1-3/+29
Change-Id: I23a28fe052062a0b98bbb2828b71ab8de6f1459c Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92816 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-24Proxy: improve debugging and connection handling.Michael Meeks1-2/+2
Change-Id: I1d48c4ec7fb80eaab1aabc83b0c210b7cf138ef2 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92815 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-24Proxy: improve debugging & naming.Michael Meeks1-7/+13
Change-Id: Ifba669a33855a67c9a4e968db42ef1a2cb301d63 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92813 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-24Proxy: poll for output space if we need waking.Michael Meeks1-0/+1
Change-Id: I18a5e71bd3342eea7992672d9be1f5518ea008e3 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92810 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-24Proxy: open four wait sockets concurrently.Michael Meeks1-5/+7
Change-Id: I08b85677be528b7aa77272a8527c9bacf3f7c336 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92809 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-24Proxy: re-write css image URLs to handle the proxy.Michael Meeks1-0/+27
Change-Id: I09f3dea2f5e3a51869d5b0aa3f473d8f3ba75f44 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92808 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-24Proxy: send multiple messages in a single request.Michael Meeks1-43/+36
Change-Id: Ic0a303979478801bd23941e8893ce5721cf3e732 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92807 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-24Proxy protocol bits.Michael Meeks1-10/+84
For now very silly: [T|B] + hex length + \n + content + \n Change-Id: I256b834a23cca975a705da2c569887665ac6be02 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92806 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-24Proxy websocket prototype.Michael Meeks1-6/+88
Try to read/write avoiding a websocket. Change-Id: I382039fa88f1030a63df1e47f687df2ee5a6055b Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92805 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-22Tolerate missing WOPI parameters.Michael Meeks1-3/+5
Change-Id: Ic938b835aadeb299e06682b2f384db323eca0a91 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92699 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-04-10mobile, tablet: Even the small tablets or large phones should get the phone UI.Jan Holesovsky1-1/+1
There is clearly not enough space for the normal sidebar when one of the dimensions is below 768. Change-Id: Iac27f12f837b9e6a64d1cce7b8376009bbe2c15f Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92004 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-03-26Move the window.mode.* functions to global.js for clarityTor Lillqvist1-0/+19
No idea why they were in Control.Toolbar.js. Change-Id: I18ab812317b4bfb71d0c63a4cb2283d4fbaa3b54 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91087 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-03-19loleaflet: ensure forward message if early websocket is connectedHenry Castro1-0/+1
This should never happen, since the _onMessage is re-assigned when loadDocument is called, but it is better to ensure to forward all messages. Change-Id: I9a792bc077b26f2f92c30c4e7851c9d2b2637bfb Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90449 Tested-by: Andras Timar <andras.timar@collabora.com> Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-02-17loleaflet: allow browser detection when loading html pageHenry Castro1-0/+140
Move the code related to browser detection immediately when loading html page to be accessible to all javascript libraries Change-Id: I442cf5ab8e9452bffa5a760768e8a3e38c1c3c21 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88744 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-01-21eslint: Enable "semi" rule as an error.Tamás Zolnai1-9/+9
This checks whether all statements end with a semicolon. We already use this rule in the code, so I enable to check this rule by eslint to keep the code consistent. Change-Id: I5ea46376d2b6fb488224d4d69e4d117139763a8c Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87154 Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com> Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-01-08loleaflet: simplify "prevent default 'contextmenu' action"Henry Castro1-0/+8
The mobile and desktop prevents default 'contextmenu' action Change-Id: I89171c955c153b2fceaad92970e2eaf039cb8527 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86373 Reviewed-by: Henry Castro <hcastro@collabora.com> Tested-by: Henry Castro <hcastro@collabora.com>
2019-12-20loleaflet: check if LOCALIZATIONS is defined on mobile appMarco Cecchetti1-1/+1
Change-Id: I066670f3bde7f028ae01624a3b475bc0939f2c31 Reviewed-on: https://gerrit.libreoffice.org/85634 Reviewed-by: Marco Cecchetti <marco.cecchetti@collabora.com> Tested-by: Marco Cecchetti <marco.cecchetti@collabora.com>
2019-12-11android: Make the localization work for the JS pieces.Jan Holesovsky1-6/+3
To have the menu translated. Change-Id: I8d4d90d260aa3fcd80a8eb68515b22c58c9b3e18 Reviewed-on: https://gerrit.libreoffice.org/84931 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-12-10fixing 2 minor console errorsMarco Cecchetti1-1/+2
Change-Id: Ie2449e33dd47511b2d8a65e1f929e69fece8a567 Reviewed-on: https://gerrit.libreoffice.org/84901 Reviewed-by: Marco Cecchetti <marco.cecchetti@collabora.com> Tested-by: Marco Cecchetti <marco.cecchetti@collabora.com>
2019-11-15loleaflet: add missing parameters when early websocket connectionlibreoffice-6-4-branch-pointHenry Castro1-5/+19
Add some missing parameters when the "websocket" is connected after loleaflet.html while "bundle.js" is downloading and ready to execute. Change-Id: I36995a3c82ce17fa5a81923e8d6d785f0c1c7742 Reviewed-on: https://gerrit.libreoffice.org/82546 Reviewed-by: Henry Castro <hcastro@collabora.com> Tested-by: Henry Castro <hcastro@collabora.com>
2019-10-31For a mobile app, call window.postMobileError() in window.onerror()Tor Lillqvist1-1/+3
Sadly it doesn't seem to work, though, at least on iOS, if I as a test re-introduce the error that was fixed by 2ddd8d7c8150950c48831279579f3caab578378b. But maybe it will work for other uncaught errors. Clearly it is better than letting the code attempt do the XMLHttpRequest thing which is totally wrong and pointless in an app. Change-Id: I7b6e95556603b680527a0516f54e24dc10e96b21
2019-09-16tdf#126971: Fix localisation of tunnelled dialogs in the iOS appTor Lillqvist1-1/+6
This used to work fine, but at some stage it had regressed. I did not bother bisecting to find the culprit. Anyway, now the JS part needs to send a lang parameter in the load message, too, for the corrent language to be used in the tunnelled dialogs. (Likely it affects also other things in core.) Change-Id: I339cddb28357978414669964106cb6fa472c967f Reviewed-on: https://gerrit.libreoffice.org/77599 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/79023
2019-08-20post logs JavaScript runtime errors to the loolwsd serverHenry Castro1-0/+25
Change-Id: Ic8ccff52d2f051ea6d31b6d2bfe08fc08ea4d8c2 Reviewed-on: https://gerrit.libreoffice.org/77849 Reviewed-by: Henry Castro <hcastro@collabora.com> Tested-by: Henry Castro <hcastro@collabora.com>
2019-06-20Avoid a TypeError.Jan Holesovsky1-1/+1
I've been getting this on Android, but suspect it can be a general problem: loleaflet.html?file_path=/storage/emulated/0/Documents/untitled.odt&closebutton=1&permission=edit:165 Uncaught TypeError: Right-hand side of 'instanceof' is not an object at global.FakeWebSocket.global.socket.onmessage (loleaflet.html?file_path=/storage/emulated/0/Documents/untitled.odt&closebutton=1&permission=edit:165) at <anonymous>:1:25 Change-Id: Ifa6a6b15843e0c8235b920cea07324db59282074
2019-03-30loleaflet: fix the prototype property of a constructor L.SocketHenry Castro1-1/+1
Change-Id: Ie0086b6e1129fa9aaba416e44d49829fe605ded6