summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@libreoffice.org>2018-03-05 15:28:05 -0300
committerJan Holesovsky <kendy@collabora.com>2018-08-07 17:52:30 +0200
commitbd82611429dc8ca18b771187ecc7283b2da495f5 (patch)
tree6d9e5c5698f36de99ff19aba749024173db7c589
parentee281114f9914b8ae77852eb1a57cbe9f62cace6 (diff)
Drop undefined navigator property
Change-Id: I42a37211bfc6d6e3b91061593f252feb6c38a8b6 Reviewed-on: https://gerrit.libreoffice.org/50782 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
-rw-r--r--help3xsl/index2.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/help3xsl/index2.html b/help3xsl/index2.html
index 43816853c1..b2040fbaf7 100644
--- a/help3xsl/index2.html
+++ b/help3xsl/index2.html
@@ -49,7 +49,10 @@
window.open(newURL,'_self');
}else{
// URL came from elsewhere, direct access to webroot, we redirect to main Help page
- var userLang = navigator.language || navigator.userLanguage;
+ var userLang = navigator.language;
+ if(userLang === undefined ){
+ userlang="en-US";
+ }
window.open(userLang + '/text/shared/main0108.html?&DbPAR=WRITER&System=WIN','_self');
}
</script>