loleaflet/js/global.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit fa4bd903390aa010950f658637bf2d00a98947df Author: Marco Cecchetti <marco.cecche...@collabora.com> AuthorDate: Thu Dec 19 14:49:59 2019 +0100 Commit: Marco Cecchetti <marco.cecche...@collabora.com> CommitDate: Fri Dec 20 20:33:09 2019 +0100 loleaflet: check if LOCALIZATIONS is defined on mobile app Change-Id: I066670f3bde7f028ae01624a3b475bc0939f2c31 Reviewed-on: https://gerrit.libreoffice.org/85634 Reviewed-by: Marco Cecchetti <marco.cecche...@collabora.com> Tested-by: Marco Cecchetti <marco.cecche...@collabora.com> diff --git a/loleaflet/js/global.js b/loleaflet/js/global.js index b582afd16..b3b619f8c 100644 --- a/loleaflet/js/global.js +++ b/loleaflet/js/global.js @@ -85,7 +85,7 @@ // In the mobile app case we can't use the stuff from l10n-for-node, as that assumes HTTP. if (window.ThisIsAMobileApp) { // We use another approach just for iOS for now. - if (window.LOCALIZATIONS.hasOwnProperty(string)) { + if (window.LOCALIZATIONS && window.LOCALIZATIONS.hasOwnProperty(string)) { // window.postMobileDebug('_(' + string + '): YES: ' + window.LOCALIZATIONS[string]); var result = window.LOCALIZATIONS[string]; if (window.LANG === 'de-CH') { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits