From c3237432d919b6bb65d0f4c9c957dd1254f250a2 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Fri, 13 Dec 2019 13:17:06 +0200 Subject: [PATCH] The uppercase SAVE thing is Android-only (See c6f36965cfc1bd68fdb88b01d493163b5d176bcc.) Avoid a mysterious and extremely misleading pop-up in the iOS app saying "The server encountered a unknown error while parsing the SAVE command". Change-Id: Ia9047f7dfa038864f3994002b42979062f0174d4 Reviewed-on: https://gerrit.libreoffice.org/85105 Reviewed-by: Tor Lillqvist Tested-by: Tor Lillqvist --- loleaflet/src/control/Control.Toolbar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loleaflet/src/control/Control.Toolbar.js b/loleaflet/src/control/Control.Toolbar.js index 7c5586c3f..2cb0b5289 100644 --- a/loleaflet/src/control/Control.Toolbar.js +++ b/loleaflet/src/control/Control.Toolbar.js @@ -2149,7 +2149,7 @@ function onCommandResult(e) { postMessageObj['result'] = e.result && e.result.value; } - if (window.ThisIsAMobileApp) { + if (window.ThisIsTheAndroidApp) { window.postMobileMessage('SAVE ' + JSON.stringify(postMessageObj)); } else { map.fire('postMessage', {msgId: 'Action_Save_Resp', args: postMessageObj});