summaryrefslogtreecommitdiff
path: root/loleaflet/js/global.js
diff options
context:
space:
mode:
authorMarco Cecchetti <marco.cecchetti@collabora.com>2019-12-19 14:49:59 +0100
committerMarco Cecchetti <marco.cecchetti@collabora.com>2019-12-20 20:33:09 +0100
commitfa4bd903390aa010950f658637bf2d00a98947df (patch)
treea48aa85cb25fc2ebf09d013a429194ed0fa3f887 /loleaflet/js/global.js
parent35831935d8cc9a2135c3462157cb14a21b13d067 (diff)
loleaflet: check if LOCALIZATIONS is defined on mobile app
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>
Diffstat (limited to 'loleaflet/js/global.js')
-rw-r--r--loleaflet/js/global.js2
1 files changed, 1 insertions, 1 deletions
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') {