loleaflet/src/core/Socket.js |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit a149320239a234a520bb0b6d3d86741877eedd3f
Author:     Tor Lillqvist <t...@collabora.com>
AuthorDate: Tue Sep 18 22:45:51 2018 +0300
Commit:     Tor Lillqvist <t...@collabora.com>
CommitDate: Tue Sep 18 22:49:10 2018 +0300

    Fix accidental unconditional use of iOS-specific API
    
    Change-Id: Ia82ba76ca7b52173540c7c78522ad36fb68e0995

diff --git a/loleaflet/src/core/Socket.js b/loleaflet/src/core/Socket.js
index 7d4cf0152..9676889c3 100644
--- a/loleaflet/src/core/Socket.js
+++ b/loleaflet/src/core/Socket.js
@@ -196,7 +196,9 @@ L.Socket = L.Class.extend({
 
        _onSocketOpen: function () {
                console.debug('_onSocketOpen:');
-               window.webkit.messageHandlers.debug.postMessage('>>>>>> 
_onSocketOpen');
+               if (window.ThisIsTheiOSApp) {
+                       window.webkit.messageHandlers.debug.postMessage('>>>>>> 
_onSocketOpen');
+               }
                this._map._serverRecycling = false;
                this._map._documentIdle = false;
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to